Skip to content

Commit

Permalink
- Changing Special Identifier for Persistent Timer command to be $tim…
Browse files Browse the repository at this point in the history
…ersecondsadjusted
  • Loading branch information
Matthew Olivo committed Oct 8, 2024
1 parent 9c24bdd commit 49286ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MixItUp.Base/Model/Overlay/OverlayPersistentTimerV3Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class OverlayPersistentTimerV3Model : OverlayEventCountingV3ModelBase
public const string SecondsProperty = "Seconds";

public const string TimerSpecialIdentifierPrefix = "timer";
public const string TimerSecondsAddedSpecialIdentifierPrefix = TimerSpecialIdentifierPrefix + "secondsadded";
public const string TimerSecondsAdjustedSpecialIdentifierPrefix = TimerSpecialIdentifierPrefix + "secondsadjusted";

public static readonly string DefaultHTML = OverlayResources.OverlayTimerDefaultHTML;
public static readonly string DefaultCSS = OverlayResources.OverlayTextDefaultCSS;
Expand Down Expand Up @@ -128,7 +128,7 @@ public override async Task ProcessEvent(UserV2ViewModel user, double amount)
await this.CallFunction("adjustTime", properties);

Dictionary<string, string> specialIdentifiers = new Dictionary<string, string>();
specialIdentifiers[TimerSecondsAddedSpecialIdentifierPrefix] = amount.ToString();
specialIdentifiers[TimerSecondsAdjustedSpecialIdentifierPrefix] = amount.ToString();

await ServiceManager.Get<CommandService>().Queue(this.TimerAdjustedCommandID, new CommandParametersModel(user, specialIdentifiers));
}
Expand Down

0 comments on commit 49286ae

Please sign in to comment.