Skip to content

Commit

Permalink
Hide "Show Quick-Start Guide" button in desktop mode since it won't h…
Browse files Browse the repository at this point in the history
…ave any visible effect
  • Loading branch information
elvissteinjr committed Aug 4, 2024
1 parent feb844a commit 2dc4af9
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/DesktopPlusUI/WindowSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5995,22 +5995,25 @@ void WindowSettings::UpdatePageResetConfirm()
}

//Show Quick-Start Guide
static float button_quick_start_width = -1.0f;
const bool button_quick_start_enabled = ConfigManager::GetValue(configid_bool_interface_quick_start_hidden);
if (!UIManager::Get()->IsInDesktopMode())
{
static float button_quick_start_width = -1.0f;
const bool button_quick_start_enabled = ConfigManager::GetValue(configid_bool_interface_quick_start_hidden);

ImGui::SameLine(ImGui::GetContentRegionAvail().x - button_quick_start_width);
ImGui::SameLine(ImGui::GetContentRegionAvail().x - button_quick_start_width);

if (!button_quick_start_enabled)
ImGui::PushItemDisabled();
if (!button_quick_start_enabled)
ImGui::PushItemDisabled();

if (ImGui::Button(TranslationManager::GetString(tstr_SettingsTroubleshootingSettingsResetShowQuickStart)))
{
UIManager::Get()->GetAuxUI().GetQuickStartWindow().Reset();
}
button_quick_start_width = ImGui::GetItemRectSize().x;
if (ImGui::Button(TranslationManager::GetString(tstr_SettingsTroubleshootingSettingsResetShowQuickStart)))
{
UIManager::Get()->GetAuxUI().GetQuickStartWindow().Reset();
}
button_quick_start_width = ImGui::GetItemRectSize().x;

if (!button_quick_start_enabled)
ImGui::PopItemDisabled();
if (!button_quick_start_enabled)
ImGui::PopItemDisabled();
}
}

void WindowSettings::PageGoForward(WindowSettingsPage new_page)
Expand Down

0 comments on commit 2dc4af9

Please sign in to comment.