Skip to content

Commit 2b2cb01

Browse files
fix: "say username" setting checkbox not working
1 parent ce0ad39 commit 2b2cb01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TwitchStreamingTools/ViewModels/Pages/SettingsView/SettingsViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public SettingsViewModel(IConfiguration configuration, TtsPhoneticWordsViewModel
123123
_antiAliasingOff = _configuration.SoundStretchArgs.AntiAliasingOff;
124124
_turnOnSpeech = _configuration.SoundStretchArgs.TurnOnSpeech;
125125
_speed = (Tempo / 50.0) + 1.0;
126+
_sayUsernameWithMessage = _configuration.SayUsernameWithMessage;
126127

127128
ToggleAdvancedTtsCommand = ReactiveCommand.Create(() => ShowAdvancedTts = !ShowAdvancedTts);
128129

@@ -373,7 +374,7 @@ public bool SayUsernameWithMessage {
373374
set {
374375
this.RaiseAndSetIfChanged(ref _sayUsernameWithMessage, value);
375376

376-
_configuration.SayUsernameWithMessage = true;
377+
_configuration.SayUsernameWithMessage = value;
377378
_configuration.WriteConfiguration();
378379
}
379380
}

0 commit comments

Comments
 (0)