diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 66443a3..f46d55f 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -136,13 +136,10 @@ namespace Bloxstrap Program.SettingsManager.Save(); - if (Program.IsFirstRun && Program.IsNoLaunch) Dialog.ShowSuccess($"{Program.ProjectName} has successfully installed"); else if (!Program.IsNoLaunch) await StartRoblox(); - - Program.Exit(); } private async Task CheckForUpdates() @@ -184,9 +181,11 @@ namespace Bloxstrap foreach (string arg in Program.LaunchArgs) startInfo.ArgumentList.Add(arg); + Program.SettingsManager.Save(); + Process.Start(startInfo); - Program.Exit(); + Environment.Exit(0); } private async Task CheckLatestVersion() diff --git a/Bloxstrap/Dialogs/BootstrapperDialogs/BootstrapperDialogForm.cs b/Bloxstrap/Dialogs/BootstrapperDialogs/BootstrapperDialogForm.cs index 425df1b..963b3b6 100644 --- a/Bloxstrap/Dialogs/BootstrapperDialogs/BootstrapperDialogForm.cs +++ b/Bloxstrap/Dialogs/BootstrapperDialogs/BootstrapperDialogForm.cs @@ -112,6 +112,8 @@ namespace Bloxstrap.Dialogs.BootstrapperDialogs ShowError(message); } #endif + + Program.Exit(); } public virtual void ShowSuccess(string message) diff --git a/Bloxstrap/Dialogs/Preferences.xaml b/Bloxstrap/Dialogs/Preferences.xaml index 9f90e0f..d907b74 100644 --- a/Bloxstrap/Dialogs/Preferences.xaml +++ b/Bloxstrap/Dialogs/Preferences.xaml @@ -58,10 +58,12 @@ - + +