bloxstrap/Bloxstrap/UI/ViewModels/Settings/BehaviourViewModel.cs
2025-03-12 18:55:20 +00:00

26 lines
901 B
C#

namespace Bloxstrap.UI.ViewModels.Settings
{
public class BehaviourViewModel : NotifyPropertyChangedViewModel
{
public bool ConfirmLaunches
{
get => App.Settings.Prop.ConfirmLaunches;
set => App.Settings.Prop.ConfirmLaunches = value;
}
public bool ForceRobloxLanguage
{
get => App.Settings.Prop.ForceRobloxLanguage;
set => App.Settings.Prop.ForceRobloxLanguage = value;
}
public bool ForceRobloxReinstallation
{
// wouldnt it be better to check old version guids?
// what about fresh installs?
get => App.State.Prop.ForceReinstall || (String.IsNullOrEmpty(App.RobloxState.Prop.Player.VersionGuid) && String.IsNullOrEmpty(App.RobloxState.Prop.Studio.VersionGuid));
set => App.State.Prop.ForceReinstall = value;
}
}
}