Skip to content

Commit

Permalink
remember window state, helps with mjun#11
Browse files Browse the repository at this point in the history
  • Loading branch information
kuthulux committed Apr 28, 2020
1 parent b98e478 commit 8cdb0ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnome_connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1598,8 +1598,8 @@ def writeConfig(self):
cp.add_section("window")
cp.set("window", "collapsed-folders", collapsed_folders)
cp.set("window", "left-panel-width", self.hpMain.get_position())
cp.set("window", "window-width", conf.WINDOW_WIDTH)
cp.set("window", "window-height", conf.WINDOW_HEIGHT)
cp.set("window", "window-width", -1 if self.wMain.is_maximized() else conf.WINDOW_WIDTH)
cp.set("window", "window-height", -1 if self.wMain.is_maximized() else conf.WINDOW_HEIGHT)
cp.set("window", "show-panel", conf.SHOW_PANEL)
cp.set("window", "show-toolbar", conf.SHOW_TOOLBAR)

Expand Down

0 comments on commit 8cdb0ff

Please sign in to comment.