mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11:27 -07:00
Fix quiet launching
Since this isn't a WinForms app anymore, there's no need to start the bootstrapper dialog as a new application with Application.Run.
This commit is contained in:
parent
d7b8efbc2c
commit
000de99c37
@ -1,8 +1,7 @@
|
||||
<Application x:Class="Bloxstrap.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:Bloxstrap"
|
||||
StartupUri="MainWindow.xaml">
|
||||
xmlns:local="clr-namespace:Bloxstrap">
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
|
@ -91,9 +91,6 @@ namespace Bloxstrap
|
||||
// this is called from BootstrapperStyleForm.SetupDialog()
|
||||
public async Task Run()
|
||||
{
|
||||
if (App.IsQuiet)
|
||||
Dialog.CloseDialog();
|
||||
|
||||
if (App.IsUninstall)
|
||||
{
|
||||
Uninstall();
|
||||
|
@ -79,9 +79,6 @@ namespace Bloxstrap.Dialogs.BootstrapperDialogs
|
||||
|
||||
public void SetupDialog()
|
||||
{
|
||||
if (App.IsQuiet)
|
||||
this.Hide();
|
||||
|
||||
this.Text = App.ProjectName;
|
||||
this.Icon = App.Settings.BootstrapperIcon.GetIcon();
|
||||
|
||||
|
@ -38,14 +38,8 @@ namespace Bloxstrap.Enums
|
||||
break;
|
||||
}
|
||||
|
||||
if (bootstrapper is null)
|
||||
{
|
||||
if (!App.IsQuiet)
|
||||
dialog.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
Application.Run(dialog);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,7 @@
|
||||
{
|
||||
"profiles": {
|
||||
"Bloxstrap": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "-foo -bar"
|
||||
"commandName": "Project"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user