mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-27 00:52:07 +03:00
Add restart to Linux restore backup function
This commit is contained in:
@@ -147,6 +147,13 @@ namespace ServiceLib.ViewModels
|
||||
{
|
||||
ProcUtils.RebootAsAdmin(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Utils.UpgradeAppExists(out var upgradeFileName))
|
||||
{
|
||||
ProcUtils.ProcessStart(upgradeFileName, Global.RebootAs, Utils.StartupPath());
|
||||
}
|
||||
}
|
||||
service?.Shutdown();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user