diff -r d32319ede131 -r 567f2ec958c3 eric6/WebBrowser/GreaseMonkey/GreaseMonkeyAddScriptDialog.py --- 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)