commit/StationPlaylist: josephsl: When converting config, make sure to save a value to appropriate section if an empty section is created.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Tue, 19 Jan 2016 20:08:58 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/3120d87fdbe8/
Changeset:   3120d87fdbe8
Branch:      master
User:        josephsl
Date:        2016-01-19 20:06:27+00:00
Summary:     When converting config, make sure to save a value to appropriate 
section if an empty section is created.

Affected #:  1 file

diff --git a/addon/installTasks.py b/addon/installTasks.py
index 84cf354..34dd87e 100755
--- a/addon/installTasks.py
+++ b/addon/installTasks.py
@@ -57,8 +57,8 @@ _conversionConfig = {
        "EndOfTrackTime":"IntroOutroAlarms",
        "SaySongRamp":"IntroOutroAlarms",
        "SongRampTime":"IntroOutroAlarms",
-       "MicAlarm":"MicAlarm",
-       "MicAlarmInterval":"MicAlarm",
+       "MicAlarm":"MicrophoneAlarm",
+       "MicAlarmInterval":"MicrophoneAlarm",
        "MetadataReminder":"General",
        "MetadataEnabled":"MetadataStreaming",
        "UseScreenColumnOrder":"ColumnAnnouncement",
@@ -87,6 +87,7 @@ def config6to7(path):
                        section = _conversionConfig[setting]
                        if section not in profile:
                                profile[section] = {}
+                               profile[section][setting] = profile[setting]
                        else:
                                try:
                                        profile[section][setting] = 
profile[setting]

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

--

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/StationPlaylist: josephsl: When converting config, make sure to save a value to appropriate section if an empty section is created. - commits-noreply