From d0b72a049827022f1bfa1a8034fb3d68b932462d Mon Sep 17 00:00:00 2001 From: ! Freaku <92618708+Freaku17@users.noreply.github.com> Date: Mon, 27 Oct 2025 19:41:05 +0530 Subject: [PATCH] Fix ba.Call warnings in translate --- plugins/utilities/translate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/utilities/translate.py b/plugins/utilities/translate.py index 73247a7..9a81d97 100644 --- a/plugins/utilities/translate.py +++ b/plugins/utilities/translate.py @@ -103,7 +103,7 @@ class NewPW(bauiv1lib.party.PartyWindow): maxwidth=self._scroll_width * 0.94, shadow=0.3, flatness=1.0, - on_activate_call=bui.Call(self._copy_msg, msg), + on_activate_call=bui.CallPartial(self._copy_msg, msg), selectable=True, ) @@ -113,7 +113,7 @@ class NewPW(bauiv1lib.party.PartyWindow): bui.containerwidget(edit=self._columnwidget, visible_child=txt) bui.textwidget(edit=txt, - on_activate_call=bui.Call(self._translate_other, msg), + on_activate_call=bui.CallPartial(self._translate_other, msg), click_activate=True) def _translate_other(self, msg: str):