Setup wizard - Added and auto-show on home open

UI - Slightly darkened W11 effect
This commit is contained in:
Robert committed 2022-07-29 22:01:36 +02:00
1 parent 5c1da6d2c4
commit 1210dc3f63
37 files changed
+1177 -487

No files matched your search

+14 -7
View File
@@ -1,12 +1,19 @@
using ReactiveUI;
using Artemis.Core.Services;
using Artemis.UI.Screens.StartupWizard;
using Artemis.UI.Shared.Services;
using Avalonia.Threading;
using ReactiveUI;
namespace Artemis.UI.Screens.Home
namespace Artemis.UI.Screens.Home;
public class HomeViewModel : MainScreenViewModel
{
public class HomeViewModel : MainScreenViewModel
public HomeViewModel(IScreen hostScreen, ISettingsService settingsService, IWindowService windowService) : base(hostScreen, "home")
{
public HomeViewModel(IScreen hostScreen) : base(hostScreen, "home")
{
DisplayName = "Home";
}
DisplayName = "Home";
// Show the startup wizard if it hasn't been completed
if (!settingsService.GetSetting("UI.SetupWizardCompleted", false).Value)
Dispatcher.UIThread.InvokeAsync(async () => await windowService.ShowDialogAsync<StartupWizardViewModel, bool>());
}
}