use the saved size even if a chat window is already opened
This commit is contained in:
parent
e852c9a2b0
commit
507fae1ccb
1 changed files with 6 additions and 5 deletions
|
@ -84,11 +84,12 @@ class TabbedChatWindow(chat.Chat):
|
||||||
self.xml.signal_autoconnect(signal_dict)
|
self.xml.signal_autoconnect(signal_dict)
|
||||||
|
|
||||||
|
|
||||||
if gajim.config.get('saveposition') and \
|
if gajim.config.get('saveposition'):
|
||||||
not gtkgui_helpers.one_window_opened('chats'):
|
if gtkgui_helpers.one_window_opened('chats'):
|
||||||
# get window position and size from config
|
# get window position and size from config
|
||||||
gtkgui_helpers.move_window(self.window, gajim.config.get('chat-x-position'),
|
gtkgui_helpers.move_window(self.window, gajim.config.get('chat-x-position'),
|
||||||
gajim.config.get('chat-y-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'),
|
gtkgui_helpers.resize_window(self.window, gajim.config.get('chat-width'),
|
||||||
gajim.config.get('chat-height'))
|
gajim.config.get('chat-height'))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue