Skip to content

Commit

Permalink
Fixed a problem with the updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Haruki1707 committed Nov 17, 2022
1 parent 5433592 commit 39c46ee
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions ShortCutes/ShortCutesForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,16 @@ public ShortCutes()
OpenFolder.Hide();
}

private void ShortCutes_Shown(object sender, EventArgs e)
private async void ShortCutes_Shown(object sender, EventArgs e)
{
Updater.GUI_Context = SynchronizationContext.Current;
Thread t = new Thread(async () =>
if (await Updater.CheckUpdateAsync("Haruki1707", "testrepo"))
{
if (await Updater.CheckUpdateAsync("Haruki1707", "ShortCutes"))
{
if (Updater.CannotWriteOnDir)
MessageForm.Error(Updater.Message);
else
new MessageForm("", 4).ShowDialog();
}
});
t.Start();
if (Updater.CannotWriteOnDir)
MessageForm.Error(Updater.Message);
else
new MessageForm("", 4).ShowDialog();
}
}

private void Emulatorcb_SelectedIndexChanged(object sender, EventArgs e)
Expand Down

0 comments on commit 39c46ee

Please sign in to comment.