Browse Source

update template

master
Nils 3 months ago
parent
commit
8ab86f0455
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      template/qtgui/mainwindow.py

+ 2
- 1
template/qtgui/mainwindow.py View File

@@ -144,7 +144,8 @@ class MainWindow(QtWidgets.QMainWindow):
settings = QtCore.QSettings("LaborejoSoftwareSuite", METADATA["shortName"])
if settings.contains("showAboutDialog") and settings.value("showAboutDialog", type=bool):
QtCore.QTimer.singleShot(100, self.about.show) #Qt Event loop is not ready at that point. We need to wait for the paint event. This is not to stall for time: Using the event loop guarantees that it exists
elif not self.nsmClient.sessionName == "NOT-A-SESSION":
elif not self.nsmClient.sessionName == "NOT-A-SESSION": #standalone mode
self.ui.actionQuit.setShortcut("")
#TODO: this is a hack until we figure out how to cleanly handle hide vs quite from outside the application
self.hideGUI()


Loading…
Cancel
Save