Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
75f5c13b by wurstsalat at 2022-05-31T12:22:00+02:00
fix: AccountsWindow: Point out the window's class

- - - - -


1 changed file:

- gajim/gtk/accounts.py


Changes:

=====================================
gajim/gtk/accounts.py
=====================================
@@ -565,8 +565,7 @@ def _disable() -> None:
         if (account in app.connections and
                 not app.connections[account].state.is_disconnected):
             # Connecting or connected
-            window = get_app_window('AccountsWindow')
-            assert window is not None
+            window = cast(AccountsWindow, get_app_window('AccountsWindow'))
             ConfirmationDialog(
                 _('Disable Account'),
                 _('Account %s is still connected') % account,
@@ -707,8 +706,7 @@ def __init__(self, account: str) -> None:
         GenericSettingPage.__init__(self, account, settings)
 
     def _on_account_name_change(self, *args: Any) -> None:
-        window = get_app_window('AccountsWindow')
-        assert window is not None
+        window = cast(AccountsWindow, get_app_window('AccountsWindow'))
         window.update_account_label(self.account)
 
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/75f5c13bf6b4b64e71aea0cd3c7bb0c665c777fb

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/75f5c13bf6b4b64e71aea0cd3c7bb0c665c777fb
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to