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,12 +1552,15 @@ _('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'):
|
||||||
x, y = self.window.window.get_root_origin()
|
# in case show_roster_on_start is False and roster is never shown
|
||||||
gajim.config.set('roster_x-position', x)
|
# window.window is None
|
||||||
gajim.config.set('roster_y-position', y)
|
if self.window.window is not None:
|
||||||
width, height = self.window.get_size()
|
x, y = self.window.window.get_root_origin()
|
||||||
gajim.config.set('roster_width', width)
|
gajim.config.set('roster_x-position', x)
|
||||||
gajim.config.set('roster_height', height)
|
gajim.config.set('roster_y-position', y)
|
||||||
|
width, height = self.window.get_size()
|
||||||
|
gajim.config.set('roster_width', width)
|
||||||
|
gajim.config.set('roster_height', height)
|
||||||
|
|
||||||
gajim.config.set('collapsed_rows', '\t'.join(self.collapsed_rows))
|
gajim.config.set('collapsed_rows', '\t'.join(self.collapsed_rows))
|
||||||
self.plugin.save_config()
|
self.plugin.save_config()
|
||||||
|
|
Loading…
Reference in New Issue