From 9c3868bfc90420fbc0b18cd4e875f8dc2d678b02 Mon Sep 17 00:00:00 2001 From: Mohamed Date: Wed, 27 Nov 2024 13:54:36 -0500 Subject: [PATCH 1/2] Fixed scan account keyboard shortcut which conflicted with the shortcut for the save button --- src/wxUI/dialogs/mastodon/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wxUI/dialogs/mastodon/configuration.py b/src/wxUI/dialogs/mastodon/configuration.py index da411455..3663b856 100644 --- a/src/wxUI/dialogs/mastodon/configuration.py +++ b/src/wxUI/dialogs/mastodon/configuration.py @@ -12,7 +12,7 @@ class generalAccount(wx.Panel, baseDialog.BaseWXDialog): super(generalAccount, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) userAutocompletionBox = wx.StaticBox(self, label=_("User autocompletion settings")) - self.userAutocompletionScan = wx.Button(self, wx.ID_ANY, _("&Scan account and add followers and following users to the user autocompletion database")) + self.userAutocompletionScan = wx.Button(self, wx.ID_ANY, _("S&can account and add followers and following users to the user autocompletion database")) self.userAutocompletionManage = wx.Button(self, wx.ID_ANY, _("&Manage autocompletion database")) autocompletionSizer = wx.StaticBoxSizer(userAutocompletionBox, wx.HORIZONTAL) autocompletionSizer.Add(self.userAutocompletionScan, 0, wx.ALL, 5) From ec1b8a0df264345caa72f3386596e05ee935ecae Mon Sep 17 00:00:00 2001 From: Mohamed Date: Wed, 27 Nov 2024 14:04:54 -0500 Subject: [PATCH 2/2] Better shortcut, add shortcuts for add followers and following to database checkboxes in scan dialog as well --- src/extra/autocompletionUsers/mastodon/wx_scan.py | 4 ++-- src/wxUI/dialogs/mastodon/configuration.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extra/autocompletionUsers/mastodon/wx_scan.py b/src/extra/autocompletionUsers/mastodon/wx_scan.py index d4887e85..8011f062 100644 --- a/src/extra/autocompletionUsers/mastodon/wx_scan.py +++ b/src/extra/autocompletionUsers/mastodon/wx_scan.py @@ -8,8 +8,8 @@ class autocompletionScanDialog(widgetUtils.BaseDialog): super(autocompletionScanDialog, self).__init__(parent=None, id=-1, title=_(u"Autocomplete users' settings")) panel = wx.Panel(self) sizer = wx.BoxSizer(wx.VERTICAL) - self.followers = wx.CheckBox(panel, -1, _("Add followers to database")) - self.friends = wx.CheckBox(panel, -1, _("Add following to database")) + self.followers = wx.CheckBox(panel, -1, _("Add &followers to database")) + self.friends = wx.CheckBox(panel, -1, _("Add f&ollowing to database")) sizer.Add(self.followers, 0, wx.ALL, 5) sizer.Add(self.friends, 0, wx.ALL, 5) ok = wx.Button(panel, wx.ID_OK) diff --git a/src/wxUI/dialogs/mastodon/configuration.py b/src/wxUI/dialogs/mastodon/configuration.py index 3663b856..3f9b8f14 100644 --- a/src/wxUI/dialogs/mastodon/configuration.py +++ b/src/wxUI/dialogs/mastodon/configuration.py @@ -12,7 +12,7 @@ class generalAccount(wx.Panel, baseDialog.BaseWXDialog): super(generalAccount, self).__init__(parent) sizer = wx.BoxSizer(wx.VERTICAL) userAutocompletionBox = wx.StaticBox(self, label=_("User autocompletion settings")) - self.userAutocompletionScan = wx.Button(self, wx.ID_ANY, _("S&can account and add followers and following users to the user autocompletion database")) + self.userAutocompletionScan = wx.Button(self, wx.ID_ANY, _("Scan acc&ount and add followers and following users to the user autocompletion database")) self.userAutocompletionManage = wx.Button(self, wx.ID_ANY, _("&Manage autocompletion database")) autocompletionSizer = wx.StaticBoxSizer(userAutocompletionBox, wx.HORIZONTAL) autocompletionSizer.Add(self.userAutocompletionScan, 0, wx.ALL, 5)