Do not display empty message in info bar
issue11569 review419351003
This commit is contained in:
1 parent
51908d2a0f
commit
3e6f93d38c
1 file changed
+2
@@ -15,6 +15,8 @@ class InfoBar(object):
|
||||
return self.__box
|
||||
|
||||
def info_bar_add(self, message, type_=Gtk.MessageType.ERROR):
|
||||
if not message:
|
||||
return
|
||||
key = (message, type_)
|
||||
if key not in self.__messages:
|
||||
info_bar = Gtk.InfoBar()
|
||||
|
||||
Reference in new issue
Block a user