mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-03 04:09:04 +00:00
Automate view initialization
This commit is contained in:
@@ -102,8 +102,7 @@ public partial class ExportSetupViewModel(
|
||||
? MessageFilter.Parse(MessageFilterValue)
|
||||
: MessageFilter.Null;
|
||||
|
||||
[RelayCommand]
|
||||
private void Initialize()
|
||||
public override Task InitializeAsync()
|
||||
{
|
||||
// Persist preferences
|
||||
SelectedFormat = settingsService.LastExportFormat;
|
||||
@@ -126,6 +125,8 @@ public partial class ExportSetupViewModel(
|
||||
|| ShouldReuseAssets
|
||||
|| !string.IsNullOrWhiteSpace(AssetsDirPath)
|
||||
|| IsReverseMessageOrder;
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
|
||||
Reference in New Issue
Block a user