do not ask the offline status message when we quit Gajim if all accounts are already offline
This commit is contained in:
parent
4f9c61657e
commit
266cff9d3b
1 changed files with 20 additions and 8 deletions
|
@ -932,6 +932,12 @@ class roster_window:
|
|||
self.window.hide()
|
||||
else:
|
||||
accounts = self.plugin.accounts.keys()
|
||||
get_msg = False
|
||||
for acct in accounts:
|
||||
if self.plugin.connected[acct]:
|
||||
get_msg = True
|
||||
break
|
||||
if get_msg:
|
||||
message = self.get_status_message('offline')
|
||||
if message == -1:
|
||||
message = ''
|
||||
|
@ -961,6 +967,12 @@ class roster_window:
|
|||
|
||||
def on_quit_menuitem_activate(self, widget):
|
||||
accounts = self.plugin.accounts.keys()
|
||||
get_msg = False
|
||||
for acct in accounts:
|
||||
if self.plugin.connected[acct]:
|
||||
get_msg = True
|
||||
break
|
||||
if get_msg:
|
||||
message = self.get_status_message('offline')
|
||||
if message == -1:
|
||||
message = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue