@@ -366,16 +366,18 @@ def ShowInfoBarMessage(self, message, buttons=None):
366366 if hasattr (self .parent , "showInfoBarMessage" ):
367367 self .parent .showInfoBarMessage .emit (
368368 message = message ,
369- buttons = [
370- {
371- "id" : self ._infobar_message_btn_id ,
372- "label" : self ._abort_btn_label ,
373- "handler" : self .OnAbort ,
374- "btnsAction" : self ._infobar_message_btns ,
375- }
376- ]
377- if buttons is None
378- else buttons ,
369+ buttons = (
370+ [
371+ {
372+ "id" : self ._infobar_message_btn_id ,
373+ "label" : self ._abort_btn_label ,
374+ "handler" : self .OnAbort ,
375+ "btnsAction" : self ._infobar_message_btns ,
376+ }
377+ ]
378+ if buttons is None
379+ else buttons
380+ ),
379381 )
380382 self ._infobar_message_btns ["addBtn" ] = False
381383
@@ -454,10 +456,9 @@ def CheckItem(self, item):
454456 if hasattr (self .parent , "download_button" ):
455457 self .parent .download_button .SetLabel (label = _ ("Download" ))
456458 return
457- else :
458- if hasattr (self .parent , "dismissShowInfoBarMessage" ):
459- self .parent .dismissShowInfoBarMessage .emit ()
460- self ._clearMessage ()
459+ if hasattr (self .parent , "dismissShowInfoBarMessage" ):
460+ self .parent .dismissShowInfoBarMessage .emit ()
461+ self ._clearMessage ()
461462
462463 def GetLocation (self ):
463464 """Get the name of the last location downloaded by the user"""
0 commit comments