mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-28 01:22:07 +03:00
Using RxApp replace ViewAction
This commit is contained in:
@@ -136,8 +136,7 @@ public class BackupAndRestoreViewModel : MyReactiveObject
|
||||
var result = await CreateZipFileFromDirectory(fileBackup);
|
||||
if (result)
|
||||
{
|
||||
var service = Locator.Current.GetService<MainWindowViewModel>();
|
||||
await service?.MyAppExitAsync(true);
|
||||
await AppManager.Instance.AppExitAsync(false);
|
||||
await SQLiteHelper.Instance.DisposeDbConnectionAsync();
|
||||
|
||||
var toPath = Utils.GetConfigPath();
|
||||
@@ -154,7 +153,7 @@ public class BackupAndRestoreViewModel : MyReactiveObject
|
||||
_ = ProcUtils.ProcessStart(upgradeFileName, Global.RebootAs, Utils.StartupPath());
|
||||
}
|
||||
}
|
||||
service?.Shutdown(true);
|
||||
AppManager.Instance.Shutdown(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user