added valorant languages support + fixed backups not created

This commit is contained in:
Valentin
2021-05-23 01:16:47 +02:00
parent 829916e444
commit 3a6b166cf6
3 changed files with 3 additions and 6 deletions

View File

@@ -59,7 +59,6 @@ namespace FModel.ViewModels
public async Task CreateBackup() public async Task CreateBackup()
{ {
if (SelectedBackup == null) return;
await _threadWorkerView.Begin(_ => await _threadWorkerView.Begin(_ =>
{ {
var backupFolder = Path.Combine(UserSettings.Default.OutputDirectory, "Backups"); var backupFolder = Path.Combine(UserSettings.Default.OutputDirectory, "Backups");

View File

@@ -20,14 +20,12 @@ namespace FModel.Views
private async void OnDownloadClick(object sender, RoutedEventArgs e) private async void OnDownloadClick(object sender, RoutedEventArgs e)
{ {
if (DataContext is not BackupManagerViewModel viewModel) return; await _viewModel.Download();
await viewModel.Download();
} }
private async void OnCreateBackupClick(object sender, RoutedEventArgs e) private async void OnCreateBackupClick(object sender, RoutedEventArgs e)
{ {
if (DataContext is not BackupManagerViewModel viewModel) return; await _viewModel.CreateBackup();
await viewModel.CreateBackup();
} }
} }
} }