From 1c67cdc35753c4efd4662ba7589221dc502a4c02 Mon Sep 17 00:00:00 2001 From: "dries.k" Date: Sun, 4 Dec 2022 20:56:12 +0100 Subject: [PATCH] no longer clear cache when refreshing applications --- gotify_tray/gui/MainApplication.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gotify_tray/gui/MainApplication.py b/gotify_tray/gui/MainApplication.py index 8425130..19eba73 100644 --- a/gotify_tray/gui/MainApplication.py +++ b/gotify_tray/gui/MainApplication.py @@ -350,11 +350,6 @@ class MainApplication(QtWidgets.QApplication): if image_popup := getattr(self, "image_popup", None): image_popup.close() - def refresh_callback(self): - # Manual refresh -> also reset the image cache - Cache().clear() - self.refresh_applications() - def theme_change_requested_callback(self, theme: str): # Set the theme set_theme(self, theme) @@ -415,7 +410,7 @@ class MainApplication(QtWidgets.QApplication): self.tray.messageClicked.connect(self.tray_notification_clicked_callback) self.tray.activated.connect(self.tray_activated_callback) - self.main_window.refresh.connect(self.refresh_callback) + self.main_window.refresh.connect(self.refresh_applications) self.main_window.delete_all.connect(self.delete_all_messages_callback) self.main_window.application_selection_changed.connect( self.application_selection_changed_callback