From 7c964a1dea2e5ce071095abaaf9d29c534016ddf Mon Sep 17 00:00:00 2001 From: Ibrahim Hamadeh Date: Thu, 1 Feb 2024 23:28:35 +0200 Subject: [PATCH] Add installTasks.py, to remove old fakeClipboardAnouncement addon. And prepare for version 2.2.1 --- addon/installTasks.py | 11 +++++++++++ buildVars.py | 2 +- readme.md | 12 +++++++++--- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 addon/installTasks.py diff --git a/addon/installTasks.py b/addon/installTasks.py new file mode 100644 index 0000000..2aa763d --- /dev/null +++ b/addon/installTasks.py @@ -0,0 +1,11 @@ +# -*- coding: UTF-8 -*- +# installTasks for enhancedFakeClipboard add-on +# During installing enhancedFakeClipboard, we aim to remove fakeClipboardAnouncement if it exist. + +import addonHandler + +def onInstall(): + for addon in addonHandler.getAvailableAddons(): + if addon.name == 'fakeClipboardAnouncement': + addon.requestRemove() + return diff --git a/buildVars.py b/buildVars.py index 8fdb3a7..33e8435 100644 --- a/buildVars.py +++ b/buildVars.py @@ -26,7 +26,7 @@ def _(arg): "addon_description": _("""NVDA speaks when putting text on to and from clip bord, mainly for copy, cut, paste and select all actions."""), # version - "addon_version": "2.2", + "addon_version": "2.2.1", # Author(s) "addon_author": "Jennifer Wenson , Ibrahim Hamadeh", # URL for the add-on documentation support diff --git a/readme.md b/readme.md index d18e2cc..29359d9 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ * Author: Jennifer Wenson, modified by Ibrahim Hamadeh * Compatibility: NVDA version 2019.3 and later -* Download [version 2.2][1] +* Download [version 2.2.1][1] The main purpose of this addon, is to announce the actions of copy, cut, paste, and select all on keyboard. @@ -16,10 +16,16 @@ It is a modified version of FakeClipboardAnnouncement addon. Some features I may mention for instance: If in edit controls you want to copy or cut text, and it is not selected, the addon will warn you that text is not selected. -and like wise, in a folder if you want to copy or cut a file and it is not selected, the addon will warn you also. and may be other features. +and like wise, in a folder if you want to copy or cut a file and it is not selected, the addon will warn you also. + +And may be there are other modified features, you'd better find yourself. + +### Changes for 2.2.1 ### + +* Remove fakeClipboardAnouncement addon if exists, during installing the modified one enhancedFakeClipboard addon. ### Changes for 2.2 ### * Initial version on github. -[1]: https://github.com/ibrahim-s/enhancedFakeClipboard/releases/download/2.2/enhancedFakeClipboard-2.2.nvda-addon +[1]: https://github.com/ibrahim-s/enhancedFakeClipboard/releases/download/2.2.1/enhancedFakeClipboard-2.2.1.nvda-addon