From e04b8fde6839566ac5951683b4a344b6a42e6042 Mon Sep 17 00:00:00 2001 From: elvissteinjr Date: Sun, 4 Aug 2024 02:52:25 +0200 Subject: [PATCH] Fix "Enter Elevated Mode" button being on a separate line when the "Restart with Steam" button is present --- src/DesktopPlusUI/WindowSettings.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/DesktopPlusUI/WindowSettings.cpp b/src/DesktopPlusUI/WindowSettings.cpp index f995f28..2e22e5e 100644 --- a/src/DesktopPlusUI/WindowSettings.cpp +++ b/src/DesktopPlusUI/WindowSettings.cpp @@ -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)))