Skip to content

Commit

Permalink
- Fixing bug with resetting Overlay Widgets forcefully re-enabling th…
Browse files Browse the repository at this point in the history
…e widget internally if it's disabled
  • Loading branch information
Matthew Olivo committed Oct 23, 2024
1 parent 070a3ca commit 6cc3191
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MixItUp.Base/Model/Overlay/OverlayWidgetV3Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,16 @@ public async Task Disable()

public async Task Reset()
{
bool isEnabled = this.IsEnabled;

await this.Disable();

await this.Item.Reset();

await this.Enable();
if (isEnabled)
{
await this.Enable();
}
}

public async Task SendInitial()
Expand Down

0 comments on commit 6cc3191

Please sign in to comment.