[aldafu] quit_on_roster_x_button advanced setting [I reverted logic]
This commit is contained in:
parent
6bd154e1e7
commit
8377bdb54b
|
@ -146,6 +146,7 @@ class Config:
|
||||||
'tabs_close_button': [opt_bool, True, _('Show close button in tab?')],
|
'tabs_close_button': [opt_bool, True, _('Show close button in tab?')],
|
||||||
'avatar_width': [opt_int, 52],
|
'avatar_width': [opt_int, 52],
|
||||||
'avatar_height': [opt_int, 52],
|
'avatar_height': [opt_int, 52],
|
||||||
|
'quit_on_roster_x_button': [opt_bool, False, _('If True, quits Gajim when X button of Window Manager is clicked. This option make sense only if trayicon is used')],
|
||||||
}
|
}
|
||||||
|
|
||||||
__options_per_key = {
|
__options_per_key = {
|
||||||
|
|
|
@ -1505,7 +1505,7 @@ _('If "%s" accepts this request you will know his status.') %jid)
|
||||||
|
|
||||||
def on_roster_window_delete_event(self, widget, event):
|
def on_roster_window_delete_event(self, widget, event):
|
||||||
'''When we want to close the window'''
|
'''When we want to close the window'''
|
||||||
if self.plugin.systray_enabled:
|
if self.plugin.systray_enabled and not gajim.config.get('quit_on_roster_x_button'):
|
||||||
self.tooltip.hide_tooltip()
|
self.tooltip.hide_tooltip()
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue