eric6/Project/ProjectInterfacesBrowser.py

changeset 7955
567f2ec958c3
parent 7923
91e843545d9a
child 7959
44e15eda6506
--- a/eric6/Project/ProjectInterfacesBrowser.py	Mon Jan 04 16:39:09 2021 +0100
+++ b/eric6/Project/ProjectInterfacesBrowser.py	Mon Jan 04 16:39:37 2021 +0100
@@ -524,33 +524,19 @@
                 fileList += Utilities.direntries(directory, True, "*.py")
             for file in fileList:
                 self.project.appendFile(file)
-            if not self.noDialog and not ui.notificationsEnabled():
-                E5MessageBox.information(
-                    self,
-                    self.tr("Interface Compilation"),
-                    self.tr(
-                        "The compilation of the interface file was"
-                        " successful."))
-            else:
-                ui.showNotification(
-                    UI.PixmapCache.getPixmap("corba48"),
-                    self.tr("Interface Compilation"),
-                    self.tr(
-                        "The compilation of the interface file was"
-                        " successful."))
+            ui.showNotification(
+                UI.PixmapCache.getPixmap("corba48"),
+                self.tr("Interface Compilation"),
+                self.tr(
+                    "The compilation of the interface file was"
+                    " successful."))
         else:
-            if not self.noDialog:
-                E5MessageBox.information(
-                    self,
-                    self.tr("Interface Compilation"),
-                    self.tr(
-                        "The compilation of the interface file failed."))
-            else:
-                ui.showNotification(
-                    UI.PixmapCache.getPixmap("corba48"),
-                    self.tr("Interface Compilation"),
-                    self.tr(
-                        "The compilation of the interface file failed."))
+            ui.showNotification(
+                UI.PixmapCache.getPixmap("corba48"),
+                self.tr("Interface Compilation"),
+                self.tr(
+                    "The compilation of the interface file failed."),
+                timeout=0)
         self.compileProc = None
         
     def __compileIDL(self, fn, noDialog=False, progress=None):

eric ide

mercurial