fixed update check
This commit is contained in:
parent
b5df3cd83e
commit
62caf3a610
@ -48,7 +48,6 @@ namespace Click_to_Call_Tray
|
|||||||
_hotkeyManager.HotkeyPressed += OnHotkeyPressed;
|
_hotkeyManager.HotkeyPressed += OnHotkeyPressed;
|
||||||
|
|
||||||
var currentTag = UpdateCheck.GetCurrentVersion();
|
var currentTag = UpdateCheck.GetCurrentVersion();
|
||||||
// Optional: asynchronous update check
|
|
||||||
Task.Run(() => UpdateCheck.CheckUpdate());
|
Task.Run(() => UpdateCheck.CheckUpdate());
|
||||||
|
|
||||||
ApplicationConfiguration.Initialize();
|
ApplicationConfiguration.Initialize();
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
@ -57,7 +58,13 @@ namespace Click_to_Call_Tray
|
|||||||
"Click-to-Call-Tray Updater", MessageBoxButtons.YesNo);
|
"Click-to-Call-Tray Updater", MessageBoxButtons.YesNo);
|
||||||
if (dialogResult == DialogResult.Yes)
|
if (dialogResult == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
System.Diagnostics.Process.Start("https://git.jan.sx/krjan02/Click-to-Call-Tray/releases/latest");
|
var ps = new ProcessStartInfo("https://git.jan.sx/krjan02/Click-to-Call-Tray/releases/latest")
|
||||||
|
{
|
||||||
|
UseShellExecute = true,
|
||||||
|
Verb = "open"
|
||||||
|
};
|
||||||
|
Process.Start(ps);
|
||||||
|
Application.Exit();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user