Skip to content

Commit d64087d

Browse files
committed
Ensure closing notification is handled on the update thread
1 parent b8f692b commit d64087d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

VRCOSC.Desktop/Updater/SquirrelUpdateManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected override async Task ApplyUpdatesAsync()
8888
}
8989
catch (Exception e)
9090
{
91-
progressNotification.Hide();
91+
progressNotification.Close();
9292

9393
// Update may have failed due to the installed version being too outdated
9494
// Retry without trying for delta

VRCOSC.Game/Graphics/Notifications/Notification.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ private void load()
6868

6969
protected override bool OnClick(ClickEvent e)
7070
{
71-
Hide();
71+
Close();
7272
return true;
7373
}
74+
75+
public void Close() => Scheduler.Add(Hide);
7476
}

0 commit comments

Comments
 (0)