mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Merge branch 'main' into menu-redesign-v3
This commit is contained in:
commit
8b1001331a
@ -107,7 +107,7 @@ namespace Bloxstrap
|
||||
|
||||
// preferences dialog was closed, and so base directory was never set
|
||||
if (!IsSetupComplete)
|
||||
return;
|
||||
Environment.Exit(Bootstrapper.ERROR_INSTALL_USEREXIT);
|
||||
|
||||
Directories.Initialize(BaseDirectory);
|
||||
|
||||
@ -128,18 +128,17 @@ namespace Bloxstrap
|
||||
|
||||
string commandLine = "";
|
||||
|
||||
#if false//DEBUG
|
||||
new MainWindow().ShowDialog();
|
||||
#else
|
||||
if (LaunchArgs.Length > 0)
|
||||
{
|
||||
if (LaunchArgs[0] == "-preferences")
|
||||
{
|
||||
#if !DEBUG
|
||||
if (Process.GetProcessesByName(ProjectName).Length > 1)
|
||||
{
|
||||
ShowMessageBox($"{ProjectName} is already running. Please close any currently open Bloxstrap or Roblox window before opening the configuration menu.", MessageBoxImage.Error);
|
||||
return;
|
||||
ShowMessageBox($"{ProjectName} is currently running. Please close any currently open Bloxstrap or Roblox window before opening the menu.", MessageBoxImage.Error);
|
||||
Environment.Exit(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
//new Preferences().ShowDialog();
|
||||
new MainWindow().ShowDialog();
|
||||
@ -161,7 +160,6 @@ namespace Bloxstrap
|
||||
{
|
||||
commandLine = "--app";
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!String.IsNullOrEmpty(commandLine))
|
||||
{
|
||||
@ -169,7 +167,7 @@ namespace Bloxstrap
|
||||
Settings.BootstrapperStyle.Show(new Bootstrapper(commandLine));
|
||||
}
|
||||
|
||||
SettingsManager.Save();
|
||||
Terminate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Bloxstrap": {
|
||||
"commandName": "Project"
|
||||
},
|
||||
"Bloxstrap (Menu)": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "-preferences"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user