Skip to content

Commit 48526a6

Browse files
committed
enhance: cleanup popup before cancel
Signed-off-by: leo <[email protected]>
1 parent 1eb313f commit 48526a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ViewModels/LauncherPage.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ public async void ProcessPopup()
126126

127127
public void CancelPopup()
128128
{
129-
if (_popup == null)
130-
return;
131-
if (_popup.InProgress)
129+
if (_popup == null || _popup.InProgress)
132130
return;
131+
132+
_popup?.Cleanup();
133133
Popup = null;
134134
}
135135

0 commit comments

Comments
 (0)