mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-14 19:02:30 +00:00
Use partial properties
This commit is contained in:
@@ -38,22 +38,22 @@ public partial class DashboardViewModel : ViewModelBase
|
||||
[NotifyCanExecuteChangedFor(nameof(PullGuildsCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(PullChannelsCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(ExportCommand))]
|
||||
private bool _isBusy;
|
||||
public partial bool IsBusy { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(PullGuildsCommand))]
|
||||
private string? _token;
|
||||
public partial string? Token { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<Guild>? _availableGuilds;
|
||||
public partial IReadOnlyList<Guild>? AvailableGuilds { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(PullChannelsCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(ExportCommand))]
|
||||
private Guild? _selectedGuild;
|
||||
public partial Guild? SelectedGuild { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private IReadOnlyList<ChannelConnection>? _availableChannels;
|
||||
public partial IReadOnlyList<ChannelConnection>? AvailableChannels { get; set; }
|
||||
|
||||
public DashboardViewModel(
|
||||
ViewModelManager viewModelManager,
|
||||
|
||||
Reference in New Issue
Block a user