|
|
|
@ -20,6 +20,7 @@ namespace v2rayN.Desktop.Views
|
|
|
|
|
{
|
|
|
|
|
private static Config _config;
|
|
|
|
|
private WindowNotificationManager? _manager;
|
|
|
|
|
private CheckUpdateView? _checkUpdateView;
|
|
|
|
|
private BackupAndRestoreView? _backupAndRestoreView;
|
|
|
|
|
|
|
|
|
|
public MainWindow()
|
|
|
|
@ -36,6 +37,7 @@ namespace v2rayN.Desktop.Views
|
|
|
|
|
menuSettingsSetUWP.Click += menuSettingsSetUWP_Click;
|
|
|
|
|
menuPromotion.Click += menuPromotion_Click;
|
|
|
|
|
menuClose.Click += menuClose_Click;
|
|
|
|
|
menuCheckUpdate.Click += MenuCheckUpdate_Click;
|
|
|
|
|
menuBackupAndRestore.Click += MenuBackupAndRestore_Click;
|
|
|
|
|
|
|
|
|
|
var IsAdministrator = true;//WindowsUtils.IsAdministrator();
|
|
|
|
@ -156,7 +158,6 @@ namespace v2rayN.Desktop.Views
|
|
|
|
|
tabClashConnections2.Content ??= new ClashConnectionsView();
|
|
|
|
|
}
|
|
|
|
|
conTheme.Content ??= new ThemeSettingView();
|
|
|
|
|
conCheckUpdate.Content ??= new CheckUpdateView();
|
|
|
|
|
|
|
|
|
|
RestoreUI();
|
|
|
|
|
AddHelpMenuItem();
|
|
|
|
@ -368,7 +369,13 @@ namespace v2rayN.Desktop.Views
|
|
|
|
|
//ViewModel?.ScanScreenTaskAsync(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void MenuBackupAndRestore_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
private void MenuCheckUpdate_Click(object? sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
_checkUpdateView ??= new CheckUpdateView();
|
|
|
|
|
DialogHost.Show(_checkUpdateView);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void MenuBackupAndRestore_Click(object? sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
_backupAndRestoreView ??= new BackupAndRestoreView(this);
|
|
|
|
|
DialogHost.Show(_backupAndRestoreView);
|
|
|
|
|