aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRael <rael.gc@gmail.com>2015-10-15 12:42:04 -0300
committerRael <rael.gc@gmail.com>2015-10-15 12:42:04 -0300
commit6fc931e20c33e40513015d31bd3bc18b0148aa8a (patch)
treecea9d1af1bf0c752ee4d6d612e1510561adae56e
parent99857f485de1e83d936220e0b4c32d4c5e4317ff (diff)
downloadscudcloud-6fc931e20c33e40513015d31bd3bc18b0148aa8a.zip
scudcloud-6fc931e20c33e40513015d31bd3bc18b0148aa8a.tar.gz
scudcloud-6fc931e20c33e40513015d31bd3bc18b0148aa8a.tar.bz2
Better window state handling
-rwxr-xr-xscudcloud-1.0/lib/scudcloud.py2
-rwxr-xr-xscudcloud-1.0/scudcloud2
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():