bloxstrap/Bloxstrap/UI/ViewModels/Settings/BehaviourViewModel.cs
Matt ca36306254
Background updates (#4861)
* add background updating

* add RobloxState

* fix potential race condition with RobloxState

* update ForceRobloxReinstallation in menu

* disable AssertReadOnlyDirectory

* add storage space check

* add logging to IsEligibleForBackgroundUpdate

* add a setting to toggle background updates

* fix mutex names being mixed up

* update string

* update strings

* update strings
2025-03-13 16:05:41 +00:00

32 lines
1.0 KiB
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 BackgroundUpdates
{
get => App.Settings.Prop.BackgroundUpdatesEnabled;
set => App.Settings.Prop.BackgroundUpdatesEnabled = value;
}
public bool IsRobloxInstallationMissing => String.IsNullOrEmpty(App.RobloxState.Prop.Player.VersionGuid) && String.IsNullOrEmpty(App.RobloxState.Prop.Studio.VersionGuid);
public bool ForceRobloxReinstallation
{
get => App.State.Prop.ForceReinstall || IsRobloxInstallationMissing;
set => App.State.Prop.ForceReinstall = value;
}
}
}