mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-24 06:04:59 +03:00
Optimization and improvement, using event subscribers
This commit is contained in:
@@ -122,6 +122,12 @@ public sealed class AppManager
|
||||
AppEvents.ShutdownRequested.OnNext(byUser);
|
||||
}
|
||||
|
||||
public async Task RebootAsAdmin()
|
||||
{
|
||||
ProcUtils.RebootAsAdmin();
|
||||
await AppManager.Instance.AppExitAsync(true);
|
||||
}
|
||||
|
||||
#endregion App
|
||||
|
||||
#region Config
|
||||
|
||||
Reference in New Issue
Block a user