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
|
// preferences dialog was closed, and so base directory was never set
|
||||||
if (!IsSetupComplete)
|
if (!IsSetupComplete)
|
||||||
return;
|
Environment.Exit(Bootstrapper.ERROR_INSTALL_USEREXIT);
|
||||||
|
|
||||||
Directories.Initialize(BaseDirectory);
|
Directories.Initialize(BaseDirectory);
|
||||||
|
|
||||||
@ -128,18 +128,17 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
string commandLine = "";
|
string commandLine = "";
|
||||||
|
|
||||||
#if false//DEBUG
|
|
||||||
new MainWindow().ShowDialog();
|
|
||||||
#else
|
|
||||||
if (LaunchArgs.Length > 0)
|
if (LaunchArgs.Length > 0)
|
||||||
{
|
{
|
||||||
if (LaunchArgs[0] == "-preferences")
|
if (LaunchArgs[0] == "-preferences")
|
||||||
{
|
{
|
||||||
|
#if !DEBUG
|
||||||
if (Process.GetProcessesByName(ProjectName).Length > 1)
|
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);
|
ShowMessageBox($"{ProjectName} is currently running. Please close any currently open Bloxstrap or Roblox window before opening the menu.", MessageBoxImage.Error);
|
||||||
return;
|
Environment.Exit(0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//new Preferences().ShowDialog();
|
//new Preferences().ShowDialog();
|
||||||
new MainWindow().ShowDialog();
|
new MainWindow().ShowDialog();
|
||||||
@ -161,7 +160,6 @@ namespace Bloxstrap
|
|||||||
{
|
{
|
||||||
commandLine = "--app";
|
commandLine = "--app";
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(commandLine))
|
if (!String.IsNullOrEmpty(commandLine))
|
||||||
{
|
{
|
||||||
@ -169,7 +167,7 @@ namespace Bloxstrap
|
|||||||
Settings.BootstrapperStyle.Show(new Bootstrapper(commandLine));
|
Settings.BootstrapperStyle.Show(new Bootstrapper(commandLine));
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsManager.Save();
|
Terminate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
{
|
{
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"Bloxstrap": {
|
"Bloxstrap": {
|
||||||
|
"commandName": "Project"
|
||||||
|
},
|
||||||
|
"Bloxstrap (Menu)": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"commandLineArgs": "-preferences"
|
"commandLineArgs": "-preferences"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user