commit/clipContentsDesigner: norrumar: Fixed add-ons setings and spelling in readme errors. Updated version to 4.2-dev.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Fri, 10 Jun 2016 15:11:26 -0000

1 new commit in clipContentsDesigner:

https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/commits/6fbb16279d2a/
Changeset:   6fbb16279d2a
Branch:      master
User:        norrumar
Date:        2016-06-10 15:11:17+00:00
Summary:     Fixed add-ons setings and spelling in readme errors. Updated 
version to 4.2-dev.

Affected #:  3 files

diff --git a/addon/globalPlugins/clipContentsDesigner/__init__.py 
b/addon/globalPlugins/clipContentsDesigner/__init__.py
index 0a376d0..30f7e00 100644
--- a/addon/globalPlugins/clipContentsDesigner/__init__.py
+++ b/addon/globalPlugins/clipContentsDesigner/__init__.py
@@ -3,6 +3,8 @@
 # Added configspec
 # Added checkbox for prepending
 # Date: 09/06/2016
+# Fixed key errors in add-on settings, reported by Derek Riemer
+# Date: 10/06/2016
 # Settings managed from config.conf of NVDA core
 # Date: 02/06/2016
 # Version: 3.0
@@ -63,7 +65,10 @@ confspec = {
 config.conf.spec["clipContentsDesigner"] = confspec
 
 def getBookmark():
-       separator = config.conf["clipContentsDesigner"]["separator"]
+       try:
+               separator = config.conf["clipContentsDesigner"]["separator"]
+       except KeyError:
+               separator = None
        if not separator:
                bookmark = "\r\n"
        else:
@@ -205,11 +210,17 @@ class AddonSettingsDialog(SettingsDialog):
                setSeparatorLabel=wx.StaticText(self, -1, label=_("Type the 
string to be used as a &separator between contents added to the clipboard."))
                self.setSeparatorEdit=wx.TextCtrl(self, wx.NewId())
                settingsSizer.Add(setSeparatorLabel)
-               
self.setSeparatorEdit.SetValue(config.conf["clipContentsDesigner"]["separator"])
+               try:
+                       
self.setSeparatorEdit.SetValue(config.conf["clipContentsDesigner"]["separator"])
+               except KeyError:
+                       pass
                settingsSizer.Add(self.setSeparatorEdit, border=10, 
flag=wx.BOTTOM)
 # Translators: label of a dialog.
                self.addTextBeforeCheckBox=wx.CheckBox(self, wx.NewId(), 
label=_("&Add text before clip data"))
-               
self.addTextBeforeCheckBox.SetValue(config.conf["clipContentsDesigner"]["addTextBefore"])
+               try:
+                       
self.addTextBeforeCheckBox.SetValue(config.conf["clipContentsDesigner"]["addTextBefore"])
+               except KeyError:
+                       pass
                settingsSizer.Add(self.addTextBeforeCheckBox,border=10, 
flag=wx.BOTTOM)
 
        def postInit(self):

diff --git a/buildVars.py b/buildVars.py
index 96ab31e..081e4d1 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
        "addon_description" : _("""Add-on for managing clipboard text."""),
        # version
-       "addon_version" : "4.1-dev",
+       "addon_version" : "4.2-dev",
        # Author(s)
        "addon_author" : u"Noelia Ruiz Martínez <nrm1977@xxxxxxxxx>",
        # URL for the add-on documentation support

diff --git a/readme.md b/readme.md
index 11db23a..1613db1 100644
--- a/readme.md
+++ b/readme.md
@@ -22,7 +22,7 @@ Note: The above command can be changed from NVDA menu, 
Preferences submenu, Inpu
 
 ## Changes for 4.0 ##
 *   Add-on settings are managed from NVDA configuration, so that standard 
profiles can be used to save different separators, and it's not needed to copy 
the settings for importing at reinstallation.
-*   Now it's possible to choose if the added text will be appended or 
prepended, using the Add text before clip data checkbox from the Clip Contents 
Designer settings dialog.
+*   Now it's possible to choose if the added text will be appended or 
prepended, using the Add text before clip data check box from the Clip Contents 
Designer settings dialog.
 
 ## Changes for 3.0 ##
 *   Braille representation of MathML objects can be added to the clipboard if 
MathPlayer is installed.

Repository URL: https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/clipContentsDesigner: norrumar: Fixed add-ons setings and spelling in readme errors. Updated version to 4.2-dev. - commits-noreply