mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-20 20:32:32 +12:00
ReinstallInstalled setting
This commit is contained in:
parent
1d906810b9
commit
2799bdd4aa
|
@ -47,6 +47,9 @@
|
|||
<setting name="SelectedTheme" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="ReinstallInstalled" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</ModAssistant.Properties.Settings>
|
||||
<ModAssistant.Settings1>
|
||||
<setting name="InstallFolder" serializeAs="String">
|
||||
|
|
|
@ -20,6 +20,7 @@ namespace ModAssistant
|
|||
public static bool SaveModSelection;
|
||||
public static bool CheckInstalledMods;
|
||||
public static bool SelectInstalledMods;
|
||||
public static bool ReinstallInstalledMods;
|
||||
public static string Version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
public static List<string> SavedMods = ModAssistant.Properties.Settings.Default.SavedMods.Split(',').ToList();
|
||||
|
||||
|
@ -64,6 +65,7 @@ namespace ModAssistant
|
|||
SaveModSelection = ModAssistant.Properties.Settings.Default.SaveSelected;
|
||||
CheckInstalledMods = ModAssistant.Properties.Settings.Default.CheckInstalled;
|
||||
SelectInstalledMods = ModAssistant.Properties.Settings.Default.SelectInstalled;
|
||||
ReinstallInstalledMods = ModAssistant.Properties.Settings.Default.ReinstallInstalled;
|
||||
|
||||
if (e.Args.Length == 0)
|
||||
{
|
||||
|
|
|
@ -309,7 +309,7 @@ namespace ModAssistant.Pages
|
|||
}
|
||||
}
|
||||
|
||||
public async void InstallMods(bool reinstallInstalledMods)
|
||||
public async void InstallMods()
|
||||
{
|
||||
MainWindow.Instance.InstallButton.IsEnabled = false;
|
||||
string installDirectory = App.BeatSaberInstallDirectory;
|
||||
|
@ -320,7 +320,7 @@ namespace ModAssistant.Pages
|
|||
if (mod.ListItem.GetVersionComparison > 0) continue;
|
||||
|
||||
// Ignore mods that are on current version if we aren't reinstalling mods
|
||||
if (mod.ListItem.GetVersionComparison == 0 && !reinstallInstalledMods) continue;
|
||||
if (mod.ListItem.GetVersionComparison == 0 && !App.ReinstallInstalledMods) continue;
|
||||
|
||||
if (mod.name.ToLower() == "bsipa")
|
||||
{
|
||||
|
|
46
ModAssistant/Properties/Settings.Designer.cs
generated
46
ModAssistant/Properties/Settings.Designer.cs
generated
|
@ -1,4 +1,4 @@
|
|||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
|
@ -9,20 +9,20 @@
|
|||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ModAssistant.Properties {
|
||||
|
||||
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0")]
|
||||
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
|
@ -34,7 +34,7 @@ namespace ModAssistant.Properties {
|
|||
this["InstallFolder"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
|
@ -46,7 +46,7 @@ namespace ModAssistant.Properties {
|
|||
this["StoreType"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
|
@ -58,7 +58,7 @@ namespace ModAssistant.Properties {
|
|||
this["SaveSelected"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
|
@ -70,7 +70,7 @@ namespace ModAssistant.Properties {
|
|||
this["CheckInstalled"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
|
@ -82,7 +82,7 @@ namespace ModAssistant.Properties {
|
|||
this["SavedMods"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
|
@ -94,7 +94,7 @@ namespace ModAssistant.Properties {
|
|||
this["Agreed"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
|
@ -106,7 +106,7 @@ namespace ModAssistant.Properties {
|
|||
this["SelectInstalled"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
|
@ -118,7 +118,7 @@ namespace ModAssistant.Properties {
|
|||
this["GameVersion"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
|
@ -130,7 +130,7 @@ namespace ModAssistant.Properties {
|
|||
this["AllGameVersions"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
|
@ -142,7 +142,7 @@ namespace ModAssistant.Properties {
|
|||
this["UpgradeRequired"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
|
@ -154,7 +154,7 @@ namespace ModAssistant.Properties {
|
|||
this["LastTab"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("")]
|
||||
|
@ -166,5 +166,17 @@ namespace ModAssistant.Properties {
|
|||
this["SelectedTheme"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
public bool ReinstallInstalled {
|
||||
get {
|
||||
return ((bool)(this["ReinstallInstalled"]));
|
||||
}
|
||||
set {
|
||||
this["ReinstallInstalled"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,5 +38,8 @@
|
|||
<Setting Name="SelectedTheme" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="ReinstallInstalled" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
</SettingsFile>
|
Loading…
Reference in a new issue