src/eric7/WebBrowser/Download/DownloadManager.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9566
d4986df5d2e4
child 9653
e67609152c5e
diff -r 9c1f429cb56b -r b47dfa7a137d src/eric7/WebBrowser/Download/DownloadManager.py
--- a/src/eric7/WebBrowser/Download/DownloadManager.py	Sun Dec 18 14:19:10 2022 +0100
+++ b/src/eric7/WebBrowser/Download/DownloadManager.py	Sun Dec 18 19:33:46 2022 +0100
@@ -19,10 +19,11 @@
 from PyQt6.QtGui import QCursor, QKeySequence, QShortcut
 from PyQt6.QtWidgets import QApplication, QDialog, QFileIconProvider, QMenu, QStyle
 
-from eric7 import Globals, Preferences
+from eric7 import Preferences
 from eric7.EricGui import EricPixmapCache
 from eric7.EricWidgets import EricMessageBox
 from eric7.EricWidgets.EricApplication import ericApp
+from eric7.SystemUtilities import OSUtilities
 from eric7.Utilities.AutoSaver import AutoSaver
 from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow
 
@@ -507,7 +508,7 @@
             self.__stopUpdateTimer()
             self.infoLabel.clear()
             self.setWindowTitle(self.tr("Download Manager"))
-            if Globals.isWindowsPlatform():
+            if OSUtilities.isWindowsPlatform():
                 self.__taskbarButton().progress().hide()
 
             if Preferences.getWebBrowser("DownloadManagerAutoClose"):
@@ -562,7 +563,7 @@
         @return reference to the task bar button
         @rtype QWinTaskbarButton or None
         """
-        if Globals.isWindowsPlatform():
+        if OSUtilities.isWindowsPlatform():
             from PyQt6.QtWinExtras import QWinTaskbarButton  # __IGNORE_WARNING_I10__
 
             if self.__winTaskbarButton is None:
@@ -584,7 +585,7 @@
                 self.__stopUpdateTimer()
                 self.infoLabel.clear()
                 self.setWindowTitle(self.tr("Download Manager"))
-                if Globals.isWindowsPlatform():
+                if OSUtilities.isWindowsPlatform():
                     self.__taskbarButton().progress().hide()
             else:
                 progresses = []
@@ -626,7 +627,7 @@
                     )
                     self.setWindowTitle(self.tr("{0}% - Download Manager"))
 
-                if Globals.isWindowsPlatform():
+                if OSUtilities.isWindowsPlatform():
                     self.__taskbarButton().progress().show()
                     self.__taskbarButton().progress().setValue(progress)
 

eric ide

mercurial