mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-05-21 21:03:44 +12:00
Fix property instancing order issue
This commit is contained in:
parent
adaca10ddb
commit
9fefe75735
|
@ -34,7 +34,6 @@ namespace ModAssistant
|
|||
{
|
||||
// Set SecurityProtocol to prevent crash with TLS
|
||||
System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
|
||||
Languages.LoadLanguages();
|
||||
|
||||
if (ModAssistant.Properties.Settings.Default.UpgradeRequired)
|
||||
{
|
||||
|
@ -44,7 +43,11 @@ namespace ModAssistant
|
|||
}
|
||||
|
||||
Version = Version.Substring(0, Version.Length - 2);
|
||||
BeatSaberInstallDirectory = Utils.GetInstallDir();
|
||||
Pages.Options options = Pages.Options.Instance;
|
||||
options.InstallDirectory =
|
||||
BeatSaberInstallDirectory = Utils.GetInstallDir();
|
||||
|
||||
Languages.LoadLanguages();
|
||||
|
||||
while (string.IsNullOrEmpty(App.BeatSaberInstallDirectory))
|
||||
{
|
||||
|
@ -61,12 +64,18 @@ namespace ModAssistant
|
|||
}
|
||||
}
|
||||
|
||||
BeatSaberInstallType = ModAssistant.Properties.Settings.Default.StoreType;
|
||||
SaveModSelection = ModAssistant.Properties.Settings.Default.SaveSelected;
|
||||
CheckInstalledMods = ModAssistant.Properties.Settings.Default.CheckInstalled;
|
||||
SelectInstalledMods = ModAssistant.Properties.Settings.Default.SelectInstalled;
|
||||
ReinstallInstalledMods = ModAssistant.Properties.Settings.Default.ReinstallInstalled;
|
||||
CloseWindowOnFinish = ModAssistant.Properties.Settings.Default.CloseWindowOnFinish;
|
||||
options.InstallType =
|
||||
BeatSaberInstallType = ModAssistant.Properties.Settings.Default.StoreType;
|
||||
options.SaveSelection =
|
||||
SaveModSelection = ModAssistant.Properties.Settings.Default.SaveSelected;
|
||||
options.CheckInstalledMods =
|
||||
CheckInstalledMods = ModAssistant.Properties.Settings.Default.CheckInstalled;
|
||||
options.SelectInstalledMods =
|
||||
SelectInstalledMods = ModAssistant.Properties.Settings.Default.SelectInstalled;
|
||||
options.ReinstallInstalledMods =
|
||||
ReinstallInstalledMods = ModAssistant.Properties.Settings.Default.ReinstallInstalled;
|
||||
options.CloseWindowOnFinish =
|
||||
CloseWindowOnFinish = ModAssistant.Properties.Settings.Default.CloseWindowOnFinish;
|
||||
|
||||
await ArgumentHandler(e.Args);
|
||||
await Init();
|
||||
|
|
|
@ -34,22 +34,14 @@ namespace ModAssistant.Pages
|
|||
public Options()
|
||||
{
|
||||
InitializeComponent();
|
||||
InstallDirectory = App.BeatSaberInstallDirectory;
|
||||
InstallType = App.BeatSaberInstallType;
|
||||
SaveSelection = App.SaveModSelection;
|
||||
CheckInstalledMods = App.CheckInstalledMods;
|
||||
SelectInstalledMods = App.SelectInstalledMods;
|
||||
ReinstallInstalledMods = App.ReinstallInstalledMods;
|
||||
CloseWindowOnFinish = App.CloseWindowOnFinish;
|
||||
|
||||
if (!CheckInstalledMods)
|
||||
{
|
||||
SelectInstalled.IsEnabled = false;
|
||||
ReinstallInstalled.IsEnabled = false;
|
||||
}
|
||||
|
||||
|
||||
UpdateHandlerStatus();
|
||||
|
||||
this.DataContext = this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue