mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-15 00:03:38 -07:00
Use ValueTask for consistency
This commit is contained in:
parent
d1a8f466f6
commit
47588296a9
|
|
@ -78,7 +78,7 @@ public class DashboardViewModel : PropertyChangedBase
|
||||||
Token = _settingsService.LastToken;
|
Token = _settingsService.LastToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task ShowSettingsAsync()
|
public async ValueTask ShowSettingsAsync()
|
||||||
{
|
{
|
||||||
var dialog = _viewModelFactory.CreateSettingsViewModel();
|
var dialog = _viewModelFactory.CreateSettingsViewModel();
|
||||||
await _dialogManager.ShowDialogAsync(dialog);
|
await _dialogManager.ShowDialogAsync(dialog);
|
||||||
|
|
@ -88,7 +88,7 @@ public class DashboardViewModel : PropertyChangedBase
|
||||||
|
|
||||||
public bool CanPullGuildsAsync => !IsBusy && !string.IsNullOrWhiteSpace(Token);
|
public bool CanPullGuildsAsync => !IsBusy && !string.IsNullOrWhiteSpace(Token);
|
||||||
|
|
||||||
public async Task PullGuildsAsync()
|
public async ValueTask PullGuildsAsync()
|
||||||
{
|
{
|
||||||
IsBusy = true;
|
IsBusy = true;
|
||||||
var progress = _progressMuxer.CreateInput();
|
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 bool CanPullChannelsAsync => !IsBusy && _discord is not null && SelectedGuild is not null;
|
||||||
|
|
||||||
public async Task PullChannelsAsync()
|
public async ValueTask PullChannelsAsync()
|
||||||
{
|
{
|
||||||
IsBusy = true;
|
IsBusy = true;
|
||||||
var progress = _progressMuxer.CreateInput();
|
var progress = _progressMuxer.CreateInput();
|
||||||
|
|
@ -193,7 +193,7 @@ public class DashboardViewModel : PropertyChangedBase
|
||||||
SelectedGuild is not null &&
|
SelectedGuild is not null &&
|
||||||
SelectedChannels?.Any() is true;
|
SelectedChannels?.Any() is true;
|
||||||
|
|
||||||
public async Task ExportAsync()
|
public async ValueTask ExportAsync()
|
||||||
{
|
{
|
||||||
IsBusy = true;
|
IsBusy = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue