Windows: Always hide roster window on X
As all Windows versions have a status icon and most Windows users expect this Fixes #9031
This commit is contained in:
parent
7429b97022
commit
3b73b6f5bb
|
@ -2381,7 +2381,7 @@ class RosterWindow:
|
||||||
x, y = self.window.get_position()
|
x, y = self.window.get_position()
|
||||||
app.config.set('roster_x-position', x)
|
app.config.set('roster_x-position', x)
|
||||||
app.config.set('roster_y-position', y)
|
app.config.set('roster_y-position', y)
|
||||||
if app.config.get('hide_on_roster_x_button'):
|
if os.name == 'nt' or app.config.get('hide_on_roster_x_button'):
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
else:
|
else:
|
||||||
self.window.iconify()
|
self.window.iconify()
|
||||||
|
@ -3696,7 +3696,7 @@ class RosterWindow:
|
||||||
'quit_on_roster_x_button') and ((app.interface.systray_enabled and\
|
'quit_on_roster_x_button') and ((app.interface.systray_enabled and\
|
||||||
app.config.get('trayicon') == 'always') or app.config.get(
|
app.config.get('trayicon') == 'always') or app.config.get(
|
||||||
'allow_hide_roster')):
|
'allow_hide_roster')):
|
||||||
if app.config.get('hide_on_roster_x_button'):
|
if os.name == 'nt' or app.config.get('hide_on_roster_x_button'):
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
else:
|
else:
|
||||||
self.window.iconify()
|
self.window.iconify()
|
||||||
|
|
Loading…
Reference in New Issue