File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
87
87
def __init__ (self ):
88
88
super (globalPluginHandler .GlobalPlugin , self ).__init__ ()
89
89
gui .settingsDialogs .NVDASettingsDialog .categoryClasses .append (EnhancedPhoneticReadingPanel )
90
+ self .validateConfig ()
90
91
speech .speakTextInfo = speakTextInfo
91
92
speech .speak = speak
92
93
speech .speakSpelling = speakSpelling
@@ -117,3 +118,12 @@ def terminate(self):
117
118
speech .speakSpelling = origSpeakSpelling
118
119
speech .cancelSpeech = origCancelSpeech
119
120
gui .settingsDialogs .NVDASettingsDialog .categoryClasses .remove (EnhancedPhoneticReadingPanel )
121
+
122
+ def validateConfig (self ):
123
+ try :
124
+ config .conf ['enhancedPhoneticReading' ]['delay' ]
125
+ except :
126
+ config .conf ['enhancedPhoneticReading' ]['delay' ] = 1000
127
+
128
+ def handleConfigProfileSwitch (self ):
129
+ self .validateConfig ()
Original file line number Diff line number Diff line change 1
1
## Changes for 1.1-dev ##
2
2
updated the way of using timers, now wx.CallLater is used instead. This should fix an incompatibility with bluetoothAudio add-on.
3
+ updated now delay config is saved in ms.
3
4
4
5
## Changes for 1.0 ##
5
6
Updated manifest to add compatibility with NVDA 2021.3.1.
You can’t perform that action at this time.
0 commit comments