move watchdog callback
This commit is contained in:
@@ -72,11 +72,11 @@ class MainApplication(QtWidgets.QApplication):
|
||||
)
|
||||
|
||||
self.watchdog = ServerConnectionWatchdogTask(self.gotify_client)
|
||||
self.watchdog.closed.connect(lambda: self.listener_closed_callback(None, None))
|
||||
self.watchdog.start()
|
||||
|
||||
self.link_callbacks()
|
||||
|
||||
self.watchdog.start()
|
||||
|
||||
def refresh_applications(self):
|
||||
self.application_model.clear()
|
||||
|
||||
@@ -164,6 +164,8 @@ class MainApplication(QtWidgets.QApplication):
|
||||
self.tray.actionSettings.triggered.connect(self.settings_callback)
|
||||
self.tray.actionReconnect.triggered.connect(self.refresh_callback)
|
||||
|
||||
self.watchdog.closed.connect(lambda: self.listener_closed_callback(None, None))
|
||||
|
||||
def acquire_lock(self) -> bool:
|
||||
temp_dir = tempfile.gettempdir()
|
||||
lock_filename = os.path.join(
|
||||
|
||||
Reference in New Issue
Block a user