From 6fc931e20c33e40513015d31bd3bc18b0148aa8a Mon Sep 17 00:00:00 2001 From: Rael Date: Thu, 15 Oct 2015 12:42:04 -0300 Subject: Better window state handling --- scudcloud-1.0/lib/scudcloud.py | 2 +- scudcloud-1.0/scudcloud | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scudcloud-1.0/lib/scudcloud.py b/scudcloud-1.0/lib/scudcloud.py index 82755cc..af4fb0c 100755 --- a/scudcloud-1.0/lib/scudcloud.py +++ b/scudcloud-1.0/lib/scudcloud.py @@ -114,7 +114,7 @@ class ScudCloud(QtGui.QMainWindow): if windowState is not None: self.restoreState(windowState) else: - self.showMaximized() + self.setWindowState(QtCore.Qt.WindowMaximized) def systray(self, show=None): if show is None: diff --git a/scudcloud-1.0/scudcloud b/scudcloud-1.0/scudcloud index c1f6cc1..6b07c37 100755 --- a/scudcloud-1.0/scudcloud +++ b/scudcloud-1.0/scudcloud @@ -33,9 +33,9 @@ def main(): print("Configuration directory "+args.confdir+" could not be created! Exiting...") raise SystemExit() win = ScudCloud(settings_path=settings_path) + win.restore() if win.minimized is None: win.show() - win.restore() sys.exit(app.exec_()) def lock(): -- cgit v1.1