Skip to content

Commit 2dc4af9

Browse files
committed
Hide "Show Quick-Start Guide" button in desktop mode since it won't have any visible effect
1 parent feb844a commit 2dc4af9

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

src/DesktopPlusUI/WindowSettings.cpp

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5995,22 +5995,25 @@ void WindowSettings::UpdatePageResetConfirm()
59955995
}
59965996

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

6001-
ImGui::SameLine(ImGui::GetContentRegionAvail().x - button_quick_start_width);
6003+
ImGui::SameLine(ImGui::GetContentRegionAvail().x - button_quick_start_width);
60026004

6003-
if (!button_quick_start_enabled)
6004-
ImGui::PushItemDisabled();
6005+
if (!button_quick_start_enabled)
6006+
ImGui::PushItemDisabled();
60056007

6006-
if (ImGui::Button(TranslationManager::GetString(tstr_SettingsTroubleshootingSettingsResetShowQuickStart)))
6007-
{
6008-
UIManager::Get()->GetAuxUI().GetQuickStartWindow().Reset();
6009-
}
6010-
button_quick_start_width = ImGui::GetItemRectSize().x;
6008+
if (ImGui::Button(TranslationManager::GetString(tstr_SettingsTroubleshootingSettingsResetShowQuickStart)))
6009+
{
6010+
UIManager::Get()->GetAuxUI().GetQuickStartWindow().Reset();
6011+
}
6012+
button_quick_start_width = ImGui::GetItemRectSize().x;
60116013

6012-
if (!button_quick_start_enabled)
6013-
ImGui::PopItemDisabled();
6014+
if (!button_quick_start_enabled)
6015+
ImGui::PopItemDisabled();
6016+
}
60146017
}
60156018

60166019
void WindowSettings::PageGoForward(WindowSettingsPage new_page)

0 commit comments

Comments
 (0)