Fix bug with Bloxstrap not staying open

looks like my dumbass completely forgot why i used application.run to begin with
This commit is contained in:
pizzaboxer 2023-02-03 21:31:36 +00:00
parent 02727cc751
commit abd56959f2
5 changed files with 25 additions and 5 deletions

View File

@ -280,8 +280,7 @@ namespace Bloxstrap
Dialog.CloseDialog(); Dialog.CloseDialog();
await gameClient.WaitForExitAsync(); await gameClient.WaitForExitAsync();
if (richPresence is not null) richPresence?.Dispose();
richPresence.Dispose();
if (App.Settings.RFUAutoclose && rbxFpsUnlocker is not null) if (App.Settings.RFUAutoclose && rbxFpsUnlocker is not null)
rbxFpsUnlocker.Kill(); rbxFpsUnlocker.Kill();

View File

@ -12,6 +12,8 @@ namespace Bloxstrap.Dialogs
{ {
public Bootstrapper? Bootstrapper { get; set; } public Bootstrapper? Bootstrapper { get; set; }
protected override bool ShowWithoutActivation => App.IsQuiet;
protected virtual string _message { get; set; } = "Please wait..."; protected virtual string _message { get; set; } = "Please wait...";
protected virtual ProgressBarStyle _progressStyle { get; set; } protected virtual ProgressBarStyle _progressStyle { get; set; }
protected virtual int _progressValue { get; set; } protected virtual int _progressValue { get; set; }

View File

@ -38,8 +38,20 @@ namespace Bloxstrap.Enums
break; break;
} }
if (!App.IsQuiet) if (bootstrapper is null)
{
dialog.ShowDialog(); dialog.ShowDialog();
} }
else
{
if (App.IsQuiet)
{
dialog.Opacity = 0;
dialog.ShowInTaskbar = false;
}
Application.Run(dialog);
}
}
} }
} }

View File

@ -300,6 +300,9 @@ namespace Bloxstrap.Helpers.Integrations
public static void UninstallExtraviPresets() public static void UninstallExtraviPresets()
{ {
if (!Directory.Exists(PresetsFolder))
return;
Debug.WriteLine("[ReShade] Uninstalling Extravi's presets..."); Debug.WriteLine("[ReShade] Uninstalling Extravi's presets...");
FileInfo[] presets = new DirectoryInfo(PresetsFolder).GetFiles(); FileInfo[] presets = new DirectoryInfo(PresetsFolder).GetFiles();

View File

@ -1,8 +1,12 @@
{ {
"profiles": { "profiles": {
"Bloxstrap": { "Bloxstrap (Launch)": {
"commandName": "Project" "commandName": "Project"
}, },
"Bloxstrap (Quiet)": {
"commandName": "Project",
"commandLineArgs": "-quiet"
},
"Bloxstrap (Menu)": { "Bloxstrap (Menu)": {
"commandName": "Project", "commandName": "Project",
"commandLineArgs": "-preferences" "commandLineArgs": "-preferences"