1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
Artemis/src/Artemis.UI/Screens/StartupWizard/Steps/WorkshopUnreachableStepViewModel.cs
Robert 13c497f41e Enhances setup wizard workflow
Refactors the setup wizard to streamline the initial user
experience. Includes the following changes:

- Adds nyan cat animation during feature installations for user enjoyment
- Skips essential feature selection if workshop is unreachable
- Moves directly to settings after device/surface selection
- Adds option to configure settings, after device configuration
2025-12-04 23:09:28 +01:00

29 lines
724 B
C#

using Artemis.Core;
using Artemis.Core.Services;
namespace Artemis.UI.Screens.StartupWizard.Steps;
public class WorkshopUnreachableStepViewModel : WizardStepViewModel
{
private readonly ISettingsService _settingsService;
public WorkshopUnreachableStepViewModel(ISettingsService settingsService)
{
_settingsService = settingsService;
HideAllButtons = true;
}
public void Retry()
{
Wizard.ChangeScreen<DefaultEntriesStepViewModel>();
}
public void Skip()
{
PluginSetting<bool> setting = _settingsService.GetSetting("UI.SetupWizardCompleted", false);
setting.Value = false;
setting.Save();
Wizard.Close(false);
}
}