mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add a setting to toggle background updates
This commit is contained in:
parent
3bb1f03975
commit
a69dac32b0
@ -408,6 +408,12 @@ namespace Bloxstrap
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!App.Settings.Prop.BackgroundUpdatesEnabled)
|
||||||
|
{
|
||||||
|
App.Logger.WriteLine(LOG_IDENT, "Not eligible: Background updates disabled");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (IsStudioLaunch)
|
if (IsStudioLaunch)
|
||||||
{
|
{
|
||||||
App.Logger.WriteLine(LOG_IDENT, "Not eligible: Studio launch");
|
App.Logger.WriteLine(LOG_IDENT, "Not eligible: Studio launch");
|
||||||
|
@ -17,6 +17,7 @@ namespace Bloxstrap.Models.Persistable
|
|||||||
public bool UseFastFlagManager { get; set; } = true;
|
public bool UseFastFlagManager { get; set; } = true;
|
||||||
public bool WPFSoftwareRender { get; set; } = false;
|
public bool WPFSoftwareRender { get; set; } = false;
|
||||||
public bool EnableAnalytics { get; set; } = true;
|
public bool EnableAnalytics { get; set; } = true;
|
||||||
|
public bool BackgroundUpdatesEnabled { get; set; } = true;
|
||||||
public bool DebugDisableVersionPackageCleanup { get; set; } = false;
|
public bool DebugDisableVersionPackageCleanup { get; set; } = false;
|
||||||
public string? SelectedCustomTheme { get; set; } = null;
|
public string? SelectedCustomTheme { get; set; } = null;
|
||||||
|
|
||||||
|
18
Bloxstrap/Resources/Strings.Designer.cs
generated
18
Bloxstrap/Resources/Strings.Designer.cs
generated
@ -2545,6 +2545,24 @@ namespace Bloxstrap.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Update Roblox in the background instead of waiting for Roblox to finish updating before being able to play Roblox. Not preferable for slow networks..
|
||||||
|
/// </summary>
|
||||||
|
public static string Menu_Behaviour_BackgroundUpdates_Description {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Menu.Behaviour.BackgroundUpdates.Description", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Background Updates.
|
||||||
|
/// </summary>
|
||||||
|
public static string Menu_Behaviour_BackgroundUpdates_Title {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Menu.Behaviour.BackgroundUpdates.Title", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Prevent against closures of your existing game from accidentally launching another one..
|
/// Looks up a localized string similar to Prevent against closures of your existing game from accidentally launching another one..
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1445,4 +1445,10 @@ Defaulting to Fluent.</value>
|
|||||||
<data name="Menu.Appearance.CustomThemes.RenameFailed" xml:space="preserve">
|
<data name="Menu.Appearance.CustomThemes.RenameFailed" xml:space="preserve">
|
||||||
<value>Failed to rename custom theme {0}: {1}</value>
|
<value>Failed to rename custom theme {0}: {1}</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Menu.Behaviour.BackgroundUpdates.Title" xml:space="preserve">
|
||||||
|
<value>Background Updates</value>
|
||||||
|
</data>
|
||||||
|
<data name="Menu.Behaviour.BackgroundUpdates.Description" xml:space="preserve">
|
||||||
|
<value>Update Roblox in the background instead of waiting for Roblox to finish updating before being able to play Roblox. Not preferable for slow networks.</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
@ -30,6 +30,12 @@
|
|||||||
<ui:ToggleSwitch IsChecked="{Binding ForceRobloxLanguage, Mode=TwoWay}" />
|
<ui:ToggleSwitch IsChecked="{Binding ForceRobloxLanguage, Mode=TwoWay}" />
|
||||||
</controls:OptionControl>
|
</controls:OptionControl>
|
||||||
|
|
||||||
|
<controls:OptionControl
|
||||||
|
Header="{x:Static resources:Strings.Menu_Behaviour_BackgroundUpdates_Title}"
|
||||||
|
Description="{x:Static resources:Strings.Menu_Behaviour_BackgroundUpdates_Description}">
|
||||||
|
<ui:ToggleSwitch IsChecked="{Binding BackgroundUpdates, Mode=TwoWay}" />
|
||||||
|
</controls:OptionControl>
|
||||||
|
|
||||||
<controls:OptionControl
|
<controls:OptionControl
|
||||||
Header="{x:Static resources:Strings.Menu_Behaviour_ForceRobloxReinstall_Title}"
|
Header="{x:Static resources:Strings.Menu_Behaviour_ForceRobloxReinstall_Title}"
|
||||||
Description="{x:Static resources:Strings.Menu_Behaviour_ForceRobloxReinstall_Description}">
|
Description="{x:Static resources:Strings.Menu_Behaviour_ForceRobloxReinstall_Description}">
|
||||||
|
@ -14,6 +14,12 @@
|
|||||||
set => App.Settings.Prop.ForceRobloxLanguage = value;
|
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 IsRobloxInstallationMissing => String.IsNullOrEmpty(App.RobloxState.Prop.Player.VersionGuid) && String.IsNullOrEmpty(App.RobloxState.Prop.Studio.VersionGuid);
|
||||||
|
|
||||||
public bool ForceRobloxReinstallation
|
public bool ForceRobloxReinstallation
|
||||||
|
Loading…
Reference in New Issue
Block a user