From 0c1245f7d7d8022b6c711780d12562b327af5e02 Mon Sep 17 00:00:00 2001 From: ruifontes Date: Sat, 2 Sep 2023 20:33:40 +0100 Subject: [PATCH] Version 2023.09.02 - Corrected a bug preventing the use on NVDA 2023.1 and earliers --- 2023.9.2.json | 29 ++++++++++++++++++++ addon/GlobalPlugins/frequentText/__init__.py | 25 +++++++++++++---- addon/doc/de/readme.md | 2 +- addon/doc/es/readme.md | 2 +- addon/doc/pt_BR/readme.md | 2 +- addon/doc/pt_PT/readme.md | 2 +- addon/doc/tr/readme.md | 2 +- buildVars.py | 2 +- readme.md | 2 +- 9 files changed, 56 insertions(+), 12 deletions(-) create mode 100644 2023.9.2.json diff --git a/2023.9.2.json b/2023.9.2.json new file mode 100644 index 0000000..07e1555 --- /dev/null +++ b/2023.9.2.json @@ -0,0 +1,29 @@ +{ + "addonId": "frequentText", + "displayName": "Regists blocks of text frequently used", + "URL": "", + "description": "Stores and make possible the entry of frequently used blocks of text. Command: Windows+F12.", + "sha256": "99ea1c186f9eb44e1b47964b2ba75a32272cd2ad9faa5ed386b8545ca53e91e6", + "homepage": "https://github.com/ruifontes/frequentText", + "addonVersionName": "2023.09.02", + "addonVersionNumber": { + "major": 2023, + "minor": 9, + "patch": 2 + }, + "minNVDAVersion": { + "major": 2021, + "minor": 1, + "patch": 0 + }, + "lastTestedVersion": { + "major": 2023, + "minor": 1, + "patch": 0 + }, + "channel": "stable", + "publisher": "", + "sourceURL": "https://github.com/ruifontes/frequentText", + "license": "GPL 2", + "licenseURL": "https://www.gnu.org/licenses/old-licenses/gpl-2.0.html" +} \ No newline at end of file diff --git a/addon/GlobalPlugins/frequentText/__init__.py b/addon/GlobalPlugins/frequentText/__init__.py index 868c8c2..10351bc 100644 --- a/addon/GlobalPlugins/frequentText/__init__.py +++ b/addon/GlobalPlugins/frequentText/__init__.py @@ -70,7 +70,10 @@ def __init__(self): allowInSleepMode = True) def script_startFrequentText(self, gesture): # Invoke the corresponding dialog - gui.mainFrame.popupSettingsDialog(FrequentTextCatgsDialog) + try: + gui.mainFrame.popupSettingsDialog(FrequentTextCatgsDialog) + except AttributeError: + gui.mainFrame._popupSettingsDialog(FrequentTextCatgsDialog) @script( # Ttranslators: Message to be announced during Keyboard Help @@ -86,7 +89,10 @@ def script_startFrequentTextDefault(self, gesture): category = 0 else: category = defCatg - gui.mainFrame.popupSettingsDialog(FrequentTextDialog) + try: + gui.mainFrame.popupSettingsDialog(FrequentTextDialog) + except AttributeError: + gui.mainFrame._popupSettingsDialog(FrequentTextDialog) def terminate (self): if self.dialog is not None: @@ -203,7 +209,10 @@ def onAdd (self, evt): # Redraw the dialog box to adapt the buttons if len(self.listCatgs) == 1: self.Destroy() - gui.mainFrame._popupSettingsDialog(FrequentTextCatgsDialog) + try: + gui.mainFrame.popupSettingsDialog(FrequentTextCatgsDialog) + except AttributeError: + gui.mainFrame._popupSettingsDialog(FrequentTextCatgsDialog) return else: return @@ -265,7 +274,10 @@ def onRemove (self, evt): return else: self.Destroy() - gui.mainFrame._popupSettingsDialog(FrequentTextCatgsDialog) + try: + gui.mainFrame.popupSettingsDialog(FrequentTextCatgsDialog) + except AttributeError: + gui.mainFrame._popupSettingsDialog(FrequentTextCatgsDialog) def onKeyPress(self, evt): # Sets enter key to show the entries and delete to remove it. @@ -599,7 +611,10 @@ def onGoBack(self, evt): # Returns to categories list dialog evt.Skip() self.Close() - gui.mainFrame._popupSettingsDialog(FrequentTextCatgsDialog) + try: + gui.mainFrame.popupSettingsDialog(FrequentTextCatgsDialog) + except AttributeError: + gui.mainFrame._popupSettingsDialog(FrequentTextCatgsDialog) def onKeyPress(self, evt): # Sets enter key to paste the text and delete to remove it. diff --git a/addon/doc/de/readme.md b/addon/doc/de/readme.md index 3d82cd7..fd19f1b 100644 --- a/addon/doc/de/readme.md +++ b/addon/doc/de/readme.md @@ -32,4 +32,4 @@ Um den Textblock in ein Bearbeitungsfeld einzufügen, wählen Sie einfach den Bl Im Add-on-Dialogfeld können Sie auch umbenennen, den Inhalt ändern, zu einer anderen Kategorie wechseln, den Textblock löschen oder zum Kategoriendialog zurückkehren. -[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.01/frequentText-2023.09.01.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.02/frequentText-2023.09.02.nvda-addon diff --git a/addon/doc/es/readme.md b/addon/doc/es/readme.md index 6d197f6..b6e25d8 100644 --- a/addon/doc/es/readme.md +++ b/addon/doc/es/readme.md @@ -31,4 +31,4 @@ Para pegar el bloque de texto en un campo de edición, simplemente seleccione el En las opciones del complemento también puede cambiar el nombre, cambiar el contenido, pasar a otra categoría, eliminar el bloque de texto o volver al diálogo de categorías. -[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.01/frequentText-2023.09.01.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.02/frequentText-2023.09.02.nvda-addon diff --git a/addon/doc/pt_BR/readme.md b/addon/doc/pt_BR/readme.md index f78b100..da10739 100644 --- a/addon/doc/pt_BR/readme.md +++ b/addon/doc/pt_BR/readme.md @@ -32,4 +32,4 @@ Para colar o bloco de texto num campo de edição, seleccione o bloco e pression Na caixa de diálogo da lista de blocos também pode renomear, alterar o conteúdo, mudar de categoria, eliminar um bloco de texto, ou voltar para a caixa de diálogo das categorias. -[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.01/frequentText-2023.09.01.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.02/frequentText-2023.09.02.nvda-addon diff --git a/addon/doc/pt_PT/readme.md b/addon/doc/pt_PT/readme.md index 6bc291a..a4a02d0 100644 --- a/addon/doc/pt_PT/readme.md +++ b/addon/doc/pt_PT/readme.md @@ -32,4 +32,4 @@ Para colar o bloco de texto num campo de edição, seleccione o bloco e pression Na caixa de diálogo da lista de blocos também pode renomear, alterar o conteúdo, mudar de categoria ou eliminar um bloco de texto, ou voltar para a caixa de diálogo das categorias. -[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.01/frequentText-2023.09.01.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.02/frequentText-2023.09.02.nvda-addon diff --git a/addon/doc/tr/readme.md b/addon/doc/tr/readme.md index 8f4ec97..a5757cb 100644 --- a/addon/doc/tr/readme.md +++ b/addon/doc/tr/readme.md @@ -32,4 +32,4 @@ Metin bloğunu bir düzenleme alanına yapıştırmak için bloğu seçin ve Ent Eklenti iletişim kutusunda ayrıca yeniden adlandırabilir, içeriği değiştirebilir, başka bir kategoriye geçebilir, metin bloğunu silebilir veya kategoriler iletişim kutusuna geri dönebilirsiniz. -[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.01/frequentText-2023.09.01.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.02/frequentText-2023.09.02.nvda-addon diff --git a/buildVars.py b/buildVars.py index 053ddde..50940e5 100644 --- a/buildVars.py +++ b/buildVars.py @@ -25,7 +25,7 @@ def _(arg): # Translators: Long description to be shown for this add-on on add-on information from add-ons manager "addon_description": _("""Stores and make possible the entry of frequently used blocks of text. Command: Windows+F12."""), # version - "addon_version": "2023.09.01", + "addon_version": "2023.09.02", # Author(s) "addon_author": _("Rui Fontes , Ângelo Abrantes and Abel Passos Júnior"), # URL for the add-on documentation support diff --git a/readme.md b/readme.md index b094f4c..3697f4a 100644 --- a/readme.md +++ b/readme.md @@ -32,4 +32,4 @@ To paste the block of text in an edit field, just select the block and press Ent In the add-on dialog box you also can rename, change the contents, move to other category, delete the block of text or go back to categories dialog. -[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.01/frequentText-2023.09.01.nvda-addon +[1]: https://github.com/ruifontes/frequentText/releases/download/2023.09.02/frequentText-2023.09.02.nvda-addon