Skip to content

Commit

Permalink
Fix "Enter Elevated Mode" button being on a separate line when the "R…
Browse files Browse the repository at this point in the history
…estart with Steam" button is present
  • Loading branch information
elvissteinjr committed Aug 4, 2024
1 parent 2dc4af9 commit e04b8fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/DesktopPlusUI/WindowSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2136,14 +2136,13 @@ void WindowSettings::UpdatePageMainCatMisc()

if (UIManager::Get()->IsElevatedTaskSetUp())
{
ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x);

const bool dashboard_app_running = IPCManager::IsDashboardAppRunning();

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

if (!has_restart_steam_button)
ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x);

if (!ConfigManager::GetValue(configid_bool_state_misc_elevated_mode_active))
{
if (ImGui::Button(TranslationManager::GetString(tstr_SettingsTroubleshootingElevatedModeEnter)))
Expand Down

0 comments on commit e04b8fd

Please sign in to comment.