Skip to content

Commit c60d952

Browse files
[TTS] Fixing bug where SkipMessage wasn't saving
1 parent eba66c2 commit c60d952

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

streaming-tools/streaming-tools/Configuration.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ public class KeystokeCommand {
346346
/// </summary>
347347
public string? TwitchChat { get; set; }
348348

349+
/// <summary>
350+
/// Gets or sets a value indicating whether this is a keystroke to skip the current message.
351+
/// </summary>
352+
public bool SkipMessage { get; set; }
353+
349354
/// <summary>
350355
/// Gets or sets a value indicating whether this is a keystroke to skip all current messages.
351356
/// </summary>

streaming-tools/streaming-tools/ViewModels/KeystrokeCommandViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public KeystrokeCommandViewModel(KeystokeCommand config, Action<KeystrokeCommand
6464
this.TimeoutUserCurrentMessage = config.TimeoutUserCurrentMessage;
6565
this.BanUserCurrentMessage = config.BanUserCurrentMessage;
6666
this.SendChatMessage = config.SendChatMessage;
67+
this.SkipMessage = config.SkipMessage;
6768
this.deleteCallback = deleteCallback;
6869

6970
GlobalKeyboardListener.Instance.Callback += this.OnKeystrokeReceived;
@@ -319,6 +320,7 @@ private void SaveToConfiguration(object? sender, PropertyChangedEventArgs e) {
319320
config.KeyCode = this.KeyCode;
320321
config.Command = this.Command;
321322
config.TwitchChat = this.SelectedTwitchChat;
323+
this.config.SkipMessage = this.SkipMessage;
322324
config.ClearMessageQueue = this.ClearMessageQueue;
323325
config.TimeoutUserCurrentMessage = this.TimeoutUserCurrentMessage;
324326
config.BanUserCurrentMessage = this.BanUserCurrentMessage;

0 commit comments

Comments
 (0)