Skip to content

Commit

Permalink
fix lint and focus
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Jun 6, 2024
1 parent a92789a commit 23cee9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/gui/addonStoreGui/controls/messageDialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ def _setupButtons(self, sHelper: BoxSizerHelper):
bHelper = sHelper.addDialogDismissButtons(ButtonHelper(wx.HORIZONTAL))

# Translators: The label of a button in a dialog
self.openStoreButton = bHelper.addButton(self, wx.ID_CLOSE, label=pgettext("addonStore", "Open Add-on &Store"))
openStoreLabel = pgettext("addonStore", "Open Add-on &Store")
self.openStoreButton = bHelper.addButton(self, wx.ID_CLOSE, label=openStoreLabel)
self.openStoreButton.Bind(wx.EVT_BUTTON, self.onOpenStoreButton)

# Translators: The label of a button in a dialog
Expand Down Expand Up @@ -477,6 +478,7 @@ def onUpdateAllButton(self, evt: wx.CommandEvent):
self.updateAllButton.Disable()
self.openStoreButton.Disable()
self.addonsList.SetFocus()
self.addonsList.Focus(0)

def _statusUpdate(self, addonListItemVM: AddonListItemVM):
log.debug(f"{addonListItemVM.Id} status: {addonListItemVM.status}")
Expand Down

0 comments on commit 23cee9c

Please sign in to comment.