mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
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
29 lines
724 B
C#
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);
|
|
}
|
|
} |