Skip to content

Commit

Permalink
Fix: GitHub update
Browse files Browse the repository at this point in the history
  • Loading branch information
xmegz committed Aug 28, 2023
1 parent 19d2f51 commit 307915e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MndpTray/MndpTray.Core/Visual/NotifyContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void Update_Click(object sender, System.EventArgs e)
if (res == DialogResult.Yes)
{
byte[] data = Update.Methods.DownloadBinary(url);
Update.Methods.UpdateProgram(Path.GetFullPath(System.AppContext.BaseDirectory), data);
Update.Methods.UpdateProgram(Path.GetFullPath(Environment.ProcessPath), data);

MessageBox.Show("Update successful, please restart application!", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Expand Down

0 comments on commit 307915e

Please sign in to comment.