@@ -35,7 +35,6 @@ def setAvailableSettings():
35
35
setattr (s , SETTINGS_AVAILABLE , True if getattr (s , SETTINGS_ID ) in config .conf ['synthRingSettingsSelector' ]['availableSettings' ] else False )
36
36
globalVars .settingsRing .updateSupportedSettings (synthDriverHandler ._curSynth )
37
37
38
-
39
38
class SynthRingSettingsSelectorSettingsPanel (gui .SettingsPanel ):
40
39
# Translators: This is the label for the Synth ring settings selector settings category in NVDA Settings screen.
41
40
title = _ ("Synth ring settings selector" )
@@ -62,20 +61,17 @@ def onSave(self):
62
61
config .conf ['synthRingSettingsSelector' ]['availableSettings' ] = newSettings
63
62
config .post_configProfileSwitch .notify ()
64
63
65
-
66
-
67
64
class GlobalPlugin (globalPluginHandler .GlobalPlugin ):
68
65
def __init__ (self ):
69
66
global SETTINGS_AVAILABLE , SETTINGS_ID
70
67
super (globalPluginHandler .GlobalPlugin , self ).__init__ ()
71
68
if buildVersion .version_year * 10 + buildVersion .version_major < 20192 :
72
69
SETTINGS_ID = 'name'
73
70
SETTINGS_AVAILABLE = 'availableInSynthSettingsRing'
74
- self .handleConfigProfileSwitch ()
75
- config .post_configProfileSwitch .register (self .handleConfigProfileSwitch )
76
71
synthDriverHandler .setSynth = setSynth
77
72
gui .settingsDialogs .setSynth = setSynth
78
- setAvailableSettings ()
73
+ self .handleConfigProfileSwitch ()
74
+ config .post_configProfileSwitch .register (self .handleConfigProfileSwitch )
79
75
gui .settingsDialogs .NVDASettingsDialog .categoryClasses .append (SynthRingSettingsSelectorSettingsPanel )
80
76
81
77
def handleConfigProfileSwitch (self ):
@@ -86,4 +82,4 @@ def terminate(self):
86
82
synthDriverHandler .setSynth = origSetSynth
87
83
gui .settingsDialogs .setSynth = origSetSynth
88
84
gui .settingsDialogs .NVDASettingsDialog .categoryClasses .remove (SynthRingSettingsSelectorSettingsPanel )
89
- config .post_configProfileSwitch .unregister (self .handleConfigProfileSwitch )
85
+ config .post_configProfileSwitch .unregister (self .handleConfigProfileSwitch )
0 commit comments