diff options
author | Rory& <root@rory.gay> | 2024-09-04 05:02:20 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-09-04 05:02:20 +0200 |
commit | d10417339b76bf2750f3e54f4e3b714dd3ed369a (patch) | |
tree | 2f0a51900228f3d4e241f9d8ac3001632ed5305d /ModerationClient/ViewModels/MainWindowViewModel.cs | |
parent | cgit url for libmatrix (diff) | |
download | ModerationClient-master.tar.xz |
Changes HEAD github/master master
Diffstat (limited to 'ModerationClient/ViewModels/MainWindowViewModel.cs')
-rw-r--r-- | ModerationClient/ViewModels/MainWindowViewModel.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ModerationClient/ViewModels/MainWindowViewModel.cs b/ModerationClient/ViewModels/MainWindowViewModel.cs index be64de4..5cd5c45 100644 --- a/ModerationClient/ViewModels/MainWindowViewModel.cs +++ b/ModerationClient/ViewModels/MainWindowViewModel.cs @@ -1,7 +1,6 @@ using System; using Avalonia; using ModerationClient.Services; -using ModerationClient.Views; namespace ModerationClient.ViewModels; @@ -9,10 +8,10 @@ public partial class MainWindowViewModel(MatrixAuthenticationService authService // public MainWindow? MainWindow { get; set; } private float _scale = 1.0f; - private ViewModelBase _currentViewModel = new LoginViewModel(authService); + private ViewModelBase? _currentViewModel = null; private Size _physicalSize = new Size(300, 220); - public ViewModelBase CurrentViewModel { + public ViewModelBase? CurrentViewModel { get => _currentViewModel; set => SetProperty(ref _currentViewModel, value); } |