Skip to content

Commit

Permalink
messagewidget: Do not flash information messages
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed May 16, 2019
1 parent b659682 commit 6eee3f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Orange/widgets/utils/messagewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,12 @@ def summarize(self):
else:
return Message()

def flashIcon(self):
for message in self.messages():
if message.severity != Severity.Information:
self.anim.start(QPropertyAnimation.KeepWhenStopped)
break

@staticmethod
def __styled(css, html):
# Prepend css style sheet before a html fragment.
Expand Down
2 changes: 1 addition & 1 deletion Orange/widgets/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ def closeEvent(self, event):

def mousePressEvent(self, event):
""" Flash message bar icon on mouse press """
self.message_bar.anim.start(QPropertyAnimation.KeepWhenStopped)
self.message_bar.flashIcon()
event.ignore()

def setVisible(self, visible):
Expand Down

0 comments on commit 6eee3f3

Please sign in to comment.