Skip to content
Snippets Groups Projects
Commit 75f5c13b authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

fix: AccountsWindow: Point out the window's class

parent 19a55d54
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment