On Linux, when selecting Show Bitmessage, do not maximize automatically

This commit is contained in:
Jonathan Warren 2013-05-25 13:59:00 -04:00
parent 9e0b1d3147
commit 7a271dccdd

View File

@ -446,12 +446,10 @@ class MyForm(QtGui.QMainWindow):
else:
if sys.platform[0:3] == 'win':
self.setWindowFlags(Qt.Window)
self.show()
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
else:
self.showMaximized()
#Here is what I believe might be required for darwin:
#self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
#else:
#self.showMaximized()
self.show()
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
self.activateWindow()