Skip to content

Commit

Permalink
Cleaned up FtsPage, undid About Tab change
Browse files Browse the repository at this point in the history
  • Loading branch information
rankynbass committed May 6, 2023
1 parent f4de107 commit 6f9dc1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/XIVLauncher.Core/Components/FtsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ public FtsPage(LauncherApp app)
public void OpenFtsIfNeeded()
{
if (CoreEnvironmentSettings.IsDeckFirstRun.HasValue)
{
if (CoreEnvironmentSettings.IsDeckFirstRun.Value)
{
App.State = LauncherApp.LauncherState.Fts;
return;
}
else
return;
}

if (!(App.Settings.CompletedFts ?? false) && Program.IsSteamDeckHardware)
{
App.State = LauncherApp.LauncherState.Fts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ public override void Draw()
PlatformHelpers.OpenBrowser(Path.Combine(AppContext.BaseDirectory, "license.txt"));
}

if (ImGui.Button("Generate Troubleshooting Pack"))
{
PackGenerator.SavePack(Program.storage);
PlatformHelpers.OpenBrowser(Program.storage.GetFolder("logs").FullName);
}

ImGui.Dummy(new Vector2(20));

ImGui.Image(this.logoTexture.ImGuiHandle, new Vector2(256) * ImGuiHelpers.GlobalScale);
Expand Down

0 comments on commit 6f9dc1a

Please sign in to comment.