Skip to content

Commit

Permalink
Version 2023.09.02
Browse files Browse the repository at this point in the history
- Corrected a bug preventing the use on NVDA 2023.1 and earliers
  • Loading branch information
ruifontes committed Sep 2, 2023
1 parent 57d0105 commit 0c1245f
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 12 deletions.
29 changes: 29 additions & 0 deletions 2023.9.2.json
Original file line number Diff line number Diff line change
@@ -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"
}
25 changes: 20 additions & 5 deletions addon/GlobalPlugins/frequentText/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion addon/doc/de/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion addon/doc/es/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion addon/doc/pt_BR/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion addon/doc/pt_PT/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion addon/doc/tr/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>, Ângelo Abrantes <[email protected]> and Abel Passos Júnior"),
# URL for the add-on documentation support
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0c1245f

Please sign in to comment.