From 1b933abb9ca20f5b8e1e4b055ffb6e83a4f32003 Mon Sep 17 00:00:00 2001 From: Xanatos <10531466+XanatosX@users.noreply.github.com> Date: Fri, 6 Sep 2024 23:35:06 +0200 Subject: [PATCH] Fix warnings --- .../ViewModels/ApplicationSettingsBackupViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/XmlFormatterOsIndependent/ViewModels/ApplicationSettingsBackupViewModel.cs b/src/XmlFormatterOsIndependent/ViewModels/ApplicationSettingsBackupViewModel.cs index c47ecca..ca42585 100644 --- a/src/XmlFormatterOsIndependent/ViewModels/ApplicationSettingsBackupViewModel.cs +++ b/src/XmlFormatterOsIndependent/ViewModels/ApplicationSettingsBackupViewModel.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.IO; using System.Text.Json; +using System.Threading.Tasks; using XmlFormatter.Application; using XmlFormatterOsIndependent.Model; using XmlFormatterOsIndependent.Model.Messages; @@ -41,7 +42,7 @@ public ApplicationSettingsBackupViewModel( /// /// Nothing [RelayCommand] - public async void ExportSettings() + public async Task ExportSettings() { var file = await windowService.SaveFileAsync(new List{ new FilePickerFileType("Json") { @@ -78,7 +79,7 @@ public async void ExportSettings() /// /// Nothing [RelayCommand] - public async void ImportSettings() + public async Task ImportSettings() { var file = await windowService.OpenFileAsync(new List{ new("Json") { Patterns = new List{ "json" } }