90 else: |
88 else: |
91 msg = self.tr("<p>Cannot install script.</p>") |
89 msg = self.tr("<p>Cannot install script.</p>") |
92 success = False |
90 success = False |
93 |
91 |
94 from WebBrowser.WebBrowserWindow import WebBrowserWindow |
92 from WebBrowser.WebBrowserWindow import WebBrowserWindow |
95 if success and WebBrowserWindow.notificationsEnabled(): |
93 if success: |
96 WebBrowserWindow.showNotification( |
94 WebBrowserWindow.showNotification( |
97 UI.PixmapCache.getPixmap("greaseMonkey48"), |
95 UI.PixmapCache.getPixmap("greaseMonkey48"), |
98 self.tr("GreaseMonkey Script Installation"), |
96 self.tr("GreaseMonkey Script Installation"), |
99 msg) |
97 msg) |
100 else: |
98 else: |
101 E5MessageBox.information( |
99 WebBrowserWindow.showNotification( |
102 self, |
100 UI.PixmapCache.getPixmap("greaseMonkey48"), |
103 self.tr("GreaseMonkey Script Installation"), |
101 self.tr("GreaseMonkey Script Installation"), |
104 msg) |
102 msg, timeout=0) |