eric6/WebBrowser/GreaseMonkey/GreaseMonkeyAddScriptDialog.py

changeset 7955
567f2ec958c3
parent 7923
91e843545d9a
child 7959
44e15eda6506
--- a/eric6/WebBrowser/GreaseMonkey/GreaseMonkeyAddScriptDialog.py	Mon Jan 04 16:39:09 2021 +0100
+++ b/eric6/WebBrowser/GreaseMonkey/GreaseMonkeyAddScriptDialog.py	Mon Jan 04 16:39:37 2021 +0100
@@ -13,8 +13,6 @@
 from PyQt5.QtCore import pyqtSlot, QDir, QFile
 from PyQt5.QtWidgets import QDialog
 
-from E5Gui import E5MessageBox
-
 from .Ui_GreaseMonkeyAddScriptDialog import Ui_GreaseMonkeyAddScriptDialog
 
 import UI.PixmapCache
@@ -92,13 +90,13 @@
             success = False
         
         from WebBrowser.WebBrowserWindow import WebBrowserWindow
-        if success and WebBrowserWindow.notificationsEnabled():
+        if success:
             WebBrowserWindow.showNotification(
                 UI.PixmapCache.getPixmap("greaseMonkey48"),
                 self.tr("GreaseMonkey Script Installation"),
                 msg)
         else:
-            E5MessageBox.information(
-                self,
+            WebBrowserWindow.showNotification(
+                UI.PixmapCache.getPixmap("greaseMonkey48"),
                 self.tr("GreaseMonkey Script Installation"),
-                msg)
+                msg, timeout=0)

eric ide

mercurial