don't save position if show_roster_on_start is
False and roster is never shown
This commit is contained in:
parent
d9e95eceeb
commit
5aec18639d
|
@ -1552,6 +1552,9 @@ _('If "%s" accepts this request you will know his status.') %jid)
|
||||||
'''When we quit the gtk plugin :
|
'''When we quit the gtk plugin :
|
||||||
tell that to the core and exit gtk'''
|
tell that to the core and exit gtk'''
|
||||||
if gajim.config.get('saveposition'):
|
if gajim.config.get('saveposition'):
|
||||||
|
# in case show_roster_on_start is False and roster is never shown
|
||||||
|
# window.window is None
|
||||||
|
if self.window.window is not None:
|
||||||
x, y = self.window.window.get_root_origin()
|
x, y = self.window.window.get_root_origin()
|
||||||
gajim.config.set('roster_x-position', x)
|
gajim.config.set('roster_x-position', x)
|
||||||
gajim.config.set('roster_y-position', y)
|
gajim.config.set('roster_y-position', y)
|
||||||
|
|
Loading…
Reference in New Issue