From 47588296a9ac696557ee3be9489b679d2a2b9c90 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Tue, 22 Aug 2023 00:08:45 +0300 Subject: [PATCH] Use `ValueTask` for consistency --- .../ViewModels/Components/DashboardViewModel.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs index 83075fc..98e4969 100644 --- a/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs +++ b/DiscordChatExporter.Gui/ViewModels/Components/DashboardViewModel.cs @@ -78,7 +78,7 @@ public class DashboardViewModel : PropertyChangedBase Token = _settingsService.LastToken; } - public async Task ShowSettingsAsync() + public async ValueTask ShowSettingsAsync() { var dialog = _viewModelFactory.CreateSettingsViewModel(); await _dialogManager.ShowDialogAsync(dialog); @@ -88,7 +88,7 @@ public class DashboardViewModel : PropertyChangedBase public bool CanPullGuildsAsync => !IsBusy && !string.IsNullOrWhiteSpace(Token); - public async Task PullGuildsAsync() + public async ValueTask PullGuildsAsync() { IsBusy = true; var progress = _progressMuxer.CreateInput(); @@ -139,7 +139,7 @@ public class DashboardViewModel : PropertyChangedBase public bool CanPullChannelsAsync => !IsBusy && _discord is not null && SelectedGuild is not null; - public async Task PullChannelsAsync() + public async ValueTask PullChannelsAsync() { IsBusy = true; var progress = _progressMuxer.CreateInput(); @@ -193,7 +193,7 @@ public class DashboardViewModel : PropertyChangedBase SelectedGuild is not null && SelectedChannels?.Any() is true; - public async Task ExportAsync() + public async ValueTask ExportAsync() { IsBusy = true;