eric6/WebBrowser/Sync/SyncCheckPage.py

changeset 7533
88261c96484b
parent 7514
0960c7c1f497
child 7923
91e843545d9a
--- a/eric6/WebBrowser/Sync/SyncCheckPage.py	Sun Apr 12 18:46:08 2020 +0200
+++ b/eric6/WebBrowser/Sync/SyncCheckPage.py	Sun Apr 12 19:07:49 2020 +0200
@@ -70,14 +70,14 @@
         
         if not syncMgr.syncEnabled():
             self.bookmarkLabel.setPixmap(
-                UI.PixmapCache.getPixmap("syncNo.png"))
-            self.historyLabel.setPixmap(UI.PixmapCache.getPixmap("syncNo.png"))
+                UI.PixmapCache.getPixmap("syncNo"))
+            self.historyLabel.setPixmap(UI.PixmapCache.getPixmap("syncNo"))
             self.passwordsLabel.setPixmap(
-                UI.PixmapCache.getPixmap("syncNo.png"))
+                UI.PixmapCache.getPixmap("syncNo"))
             self.userAgentsLabel.setPixmap(
-                UI.PixmapCache.getPixmap("syncNo.png"))
+                UI.PixmapCache.getPixmap("syncNo"))
             self.speedDialLabel.setPixmap(
-                UI.PixmapCache.getPixmap("syncNo.png"))
+                UI.PixmapCache.getPixmap("syncNo"))
             return
         
         # bookmarks
@@ -85,34 +85,34 @@
             self.__makeAnimatedLabel("loadingAnimation", self.bookmarkLabel)
         else:
             self.bookmarkLabel.setPixmap(
-                UI.PixmapCache.getPixmap("syncNo.png"))
+                UI.PixmapCache.getPixmap("syncNo"))
         
         # history
         if Preferences.getWebBrowser("SyncHistory"):
             self.__makeAnimatedLabel("loadingAnimation", self.historyLabel)
         else:
-            self.historyLabel.setPixmap(UI.PixmapCache.getPixmap("syncNo.png"))
+            self.historyLabel.setPixmap(UI.PixmapCache.getPixmap("syncNo"))
         
         # Passwords
         if Preferences.getWebBrowser("SyncPasswords"):
             self.__makeAnimatedLabel("loadingAnimation", self.passwordsLabel)
         else:
             self.passwordsLabel.setPixmap(
-                UI.PixmapCache.getPixmap("syncNo.png"))
+                UI.PixmapCache.getPixmap("syncNo"))
         
         # user agent settings
         if Preferences.getWebBrowser("SyncUserAgents"):
             self.__makeAnimatedLabel("loadingAnimation", self.userAgentsLabel)
         else:
             self.userAgentsLabel.setPixmap(
-                UI.PixmapCache.getPixmap("syncNo.png"))
+                UI.PixmapCache.getPixmap("syncNo"))
         
         # speed dial settings
         if Preferences.getWebBrowser("SyncSpeedDial"):
             self.__makeAnimatedLabel("loadingAnimation", self.speedDialLabel)
         else:
             self.speedDialLabel.setPixmap(
-                UI.PixmapCache.getPixmap("syncNo.png"))
+                UI.PixmapCache.getPixmap("syncNo"))
         
         QTimer.singleShot(
             0, lambda: syncMgr.loadSettings(forceUpload=forceUpload))
@@ -161,38 +161,38 @@
         if type_ == "bookmarks":
             if status:
                 self.bookmarkLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncCompleted.png"))
+                    UI.PixmapCache.getPixmap("syncCompleted"))
             else:
                 self.bookmarkLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncFailed.png"))
+                    UI.PixmapCache.getPixmap("syncFailed"))
         elif type_ == "history":
             if status:
                 self.historyLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncCompleted.png"))
+                    UI.PixmapCache.getPixmap("syncCompleted"))
             else:
                 self.historyLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncFailed.png"))
+                    UI.PixmapCache.getPixmap("syncFailed"))
         elif type_ == "passwords":
             if status:
                 self.passwordsLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncCompleted.png"))
+                    UI.PixmapCache.getPixmap("syncCompleted"))
             else:
                 self.passwordsLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncFailed.png"))
+                    UI.PixmapCache.getPixmap("syncFailed"))
         elif type_ == "useragents":
             if status:
                 self.userAgentsLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncCompleted.png"))
+                    UI.PixmapCache.getPixmap("syncCompleted"))
             else:
                 self.userAgentsLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncFailed.png"))
+                    UI.PixmapCache.getPixmap("syncFailed"))
         elif type_ == "speeddial":
             if status:
                 self.speedDialLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncCompleted.png"))
+                    UI.PixmapCache.getPixmap("syncCompleted"))
             else:
                 self.speedDialLabel.setPixmap(
-                    UI.PixmapCache.getPixmap("syncFailed.png"))
+                    UI.PixmapCache.getPixmap("syncFailed"))
     
     def __syncError(self, message):
         """

eric ide

mercurial