diff -r d32319ede131 -r 567f2ec958c3 eric6/Project/ProjectFormsBrowser.py --- a/eric6/Project/ProjectFormsBrowser.py Mon Jan 04 16:39:09 2021 +0100 +++ b/eric6/Project/ProjectFormsBrowser.py Mon Jan 04 16:39:37 2021 +0100 @@ -763,45 +763,26 @@ f.write(line + "\n") if self.compiledFile not in self.project.pdata["SOURCES"]: self.project.appendFile(ofn) - if not self.noDialog and not ui.notificationsEnabled(): - E5MessageBox.information( - self, - self.tr("Form Compilation"), - self.tr("The compilation of the form file" - " was successful.")) - else: - ui.showNotification( - UI.PixmapCache.getPixmap("designer48"), - self.tr("Form Compilation"), - self.tr("The compilation of the form file" - " was successful.")) + ui.showNotification( + UI.PixmapCache.getPixmap("designer48"), + self.tr("Form Compilation"), + self.tr("The compilation of the form file" + " was successful.")) self.project.projectFormCompiled.emit(self.compiledFile) except OSError as msg: - if not self.noDialog: - E5MessageBox.information( - self, - self.tr("Form Compilation"), - self.tr( - "<p>The compilation of the form file failed.</p>" - "<p>Reason: {0}</p>").format(str(msg))) - else: - ui.showNotification( - UI.PixmapCache.getPixmap("designer48"), - self.tr("Form Compilation"), - self.tr( - "<p>The compilation of the form file failed.</p>" - "<p>Reason: {0}</p>").format(str(msg))) - else: - if not self.noDialog: - E5MessageBox.information( - self, - self.tr("Form Compilation"), - self.tr("The compilation of the form file failed.")) - else: ui.showNotification( UI.PixmapCache.getPixmap("designer48"), self.tr("Form Compilation"), - self.tr("The compilation of the form file failed.")) + self.tr( + "<p>The compilation of the form file failed.</p>" + "<p>Reason: {0}</p>").format(str(msg)), + timeout=0) + else: + ui.showNotification( + UI.PixmapCache.getPixmap("designer48"), + self.tr("Form Compilation"), + self.tr("The compilation of the form file failed."), + timeout=0) self.compileProc = None def __compileUI(self, fn, noDialog=False, progress=None):