Support handling events by monitoring an events folder for changes

This commit is contained in:
Micah Lee 2019-11-28 12:24:26 -08:00
parent d78d67adf6
commit e7c683528d
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
7 changed files with 152 additions and 23 deletions

View file

@ -119,6 +119,7 @@ class MainWindow(QtWidgets.QMainWindow):
# Tabs
self.tabs = TabWidget(self.common, self.system_tray, self.status_bar)
self.tabs.bring_to_front.connect(self.bring_to_front)
# If we have saved persistent tabs, try opening those
if len(self.common.settings.get("persistent_tabs")) > 0:
@ -281,6 +282,11 @@ class MainWindow(QtWidgets.QMainWindow):
self.update_thread.update_available.connect(update_available)
self.update_thread.start()
def bring_to_front(self):
self.common.log("MainWindow", "bring_to_front")
self.raise_()
self.activateWindow()
def closeEvent(self, e):
self.common.log("MainWindow", "closeEvent")