Skip to content

Commit

Permalink
fix: macos cannot hide in appkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefissure committed Nov 10, 2023
1 parent d2519dc commit 8dac06b
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/XIVLauncher.Core/Components/MainPage/MainPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ public async Task<Process> StartGameAndAddon(Launcher.LoginResult loginResult, b
throw new NotImplementedException();
}

#if !OSX
if (!Program.IsSteamDeckHardware)
{
Hide();
Expand All @@ -896,6 +897,7 @@ public async Task<Process> StartGameAndAddon(Launcher.LoginResult loginResult, b
{
App.State = LauncherApp.LauncherState.SteamDeckPrompt;
}
#endif

// We won't do any sanity checks here anymore, since that should be handled in StartLogin
// var launchedProcess = App.Launcher.LaunchGame(runner,
Expand Down Expand Up @@ -967,17 +969,17 @@ public async Task<Process> StartGameAndAddon(Launcher.LoginResult loginResult, b
if (addonMgr.IsRunning)
addonMgr.StopAddons();

// try
// {
// if (App.Steam.IsValid)
// {
// App.Steam.Shutdown();
// }
// }
// catch (Exception ex)
// {
// Log.Error(ex, "Could not shut down Steam");
// }
try
{
if (App.Steam?.IsValid ?? false)
{
App.Steam.Shutdown();
}
}
catch (Exception ex)
{
Log.Error(ex, "Could not shut down Steam");
}

return launchedProcess!;
}
Expand Down

0 comments on commit 8dac06b

Please sign in to comment.