diff options
author | Philipp Hörist <philipp@hoerist.com> | 2022-10-05 22:27:13 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2022-10-05 23:59:05 +0300 |
commit | 39628b6de0c62758ff23d4c9a1d56ecfc2901631 (patch) | |
tree | 6044d254122dc974dfbbaac1926c11e85e9d7aa3 | |
parent | 81365d4e8da0287213c7019716c7525da625e296 (diff) |
new: Client: Add is_destroyed() method
-rw-r--r-- | gajim/common/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gajim/common/client.py b/gajim/common/client.py index 339fe52f8..dac5e0505 100644 --- a/gajim/common/client.py +++ b/gajim/common/client.py @@ -150,6 +150,9 @@ class Client(Observable): return address.to_string().split(':')[0] return None + def is_destroyed(self) -> bool: + return self._destroyed + def set_remove_account(self, value: bool) -> None: # Used by the RemoveAccount Assistant to make the Client # not react to any stream errors that happen while the |