Skip to content

Commit

Permalink
- Adjusting Persistent Timer Overlay Widget to always ensure there is…
Browse files Browse the repository at this point in the history
… 1 second remaining even if the amount subtracted would bring it to 0 or below
  • Loading branch information
Matthew Olivo committed Oct 13, 2024
1 parent 86569fc commit a804705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MixItUp.Base/Model/Overlay/OverlayPersistentTimerV3Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ public override async Task ProcessEvent(UserV2ViewModel user, double amount)
else
{
this.CurrentAmount += (int)amount;
this.CurrentAmount = Math.Max(this.CurrentAmount, 1);
}

this.CurrentAmount = Math.Max(this.CurrentAmount, 1);

if (amount != 0)
{
Dictionary<string, object> properties = new Dictionary<string, object>();
Expand Down

0 comments on commit a804705

Please sign in to comment.