mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 00:21:33 -07:00
* 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
32 lines
1.0 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|