eric6/Project/ProjectFormsBrowser.py

changeset 7959
44e15eda6506
parent 7955
567f2ec958c3
child 8043
0acf98cd089a
child 8143
2c730d5fd177
--- a/eric6/Project/ProjectFormsBrowser.py	Tue Jan 05 15:14:40 2021 +0100
+++ b/eric6/Project/ProjectFormsBrowser.py	Tue Jan 05 18:28:31 2021 +0100
@@ -25,6 +25,8 @@
 from .ProjectBaseBrowser import ProjectBaseBrowser
 
 import UI.PixmapCache
+from UI.NotificationWidget import NotificationTypes
+
 
 import Preferences
 import Utilities
@@ -776,12 +778,14 @@
                     self.tr(
                         "<p>The compilation of the form file failed.</p>"
                         "<p>Reason: {0}</p>").format(str(msg)),
+                    kind=NotificationTypes.Critical,
                     timeout=0)
         else:
             ui.showNotification(
                 UI.PixmapCache.getPixmap("designer48"),
                 self.tr("Form Compilation"),
                 self.tr("The compilation of the form file failed."),
+                kind=NotificationTypes.Critical,
                 timeout=0)
         self.compileProc = None
         

eric ide

mercurial