use the saved size even if a chat window is already opened
This commit is contained in:
parent
e852c9a2b0
commit
507fae1ccb
|
@ -84,11 +84,12 @@ class TabbedChatWindow(chat.Chat):
|
|||
self.xml.signal_autoconnect(signal_dict)
|
||||
|
||||
|
||||
if gajim.config.get('saveposition') and \
|
||||
not gtkgui_helpers.one_window_opened('chats'):
|
||||
# get window position and size from config
|
||||
gtkgui_helpers.move_window(self.window, gajim.config.get('chat-x-position'),
|
||||
gajim.config.get('chat-y-position'))
|
||||
if gajim.config.get('saveposition'):
|
||||
if gtkgui_helpers.one_window_opened('chats'):
|
||||
# get window position and size from config
|
||||
gtkgui_helpers.move_window(self.window, gajim.config.get('chat-x-position'),
|
||||
gajim.config.get('chat-y-position'))
|
||||
# Even if one is already opened we can use the saved size
|
||||
gtkgui_helpers.resize_window(self.window, gajim.config.get('chat-width'),
|
||||
gajim.config.get('chat-height'))
|
||||
|
||||
|
|
Loading…
Reference in New Issue