Skip to content

Commit

Permalink
fix bug: When no voice selected and change Keep main parameter and lo…
Browse files Browse the repository at this point in the history
…cale parameter consistent setting, It will damage the configuration.
  • Loading branch information
tsengwoody committed Aug 15, 2021
1 parent 95fb187 commit df2c526
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/globalPlugins/WorldVoiceXVED2/speechSettingsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ def onVoiceChange(self, event):

def onKeepParameterConsistentChange(self, event):
voiceName = self._voicesChoice.GetStringSelection()
if voiceName == "":
if self._keepParameterConsistentCheckBox.GetValue():
self._manager.onVoiceParameterConsistent(self._manager._defaultVoiceInstance)
return
if voiceName != "no-select":
self.sliderEnable()
voiceInstance = self._manager.getVoiceInstance(voiceName)
Expand Down

0 comments on commit df2c526

Please sign in to comment.