From 5ea9cd985a567c09d2550b82d61219517bf7bf64 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 22 Oct 2023 01:54:43 +0200 Subject: [PATCH] Swap greying out code Only Advanced Options needs to be greyed out if no install is found, youtube should always work. --- r5dev/sdklauncher/base_surface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/r5dev/sdklauncher/base_surface.cpp b/r5dev/sdklauncher/base_surface.cpp index c82f4f80..44ad9816 100644 --- a/r5dev/sdklauncher/base_surface.cpp +++ b/r5dev/sdklauncher/base_surface.cpp @@ -61,7 +61,7 @@ CBaseSurface::CBaseSurface() this->m_RepairButton->SetSize({ 168, 70 }); this->m_RepairButton->SetLocation({ 10, 90 }); this->m_RepairButton->SetTabIndex(9); - this->m_RepairButton->SetEnabled(/*m_bIsInstalled*/ true); + this->m_RepairButton->SetEnabled(m_bIsInstalled); this->m_RepairButton->SetText(XorStr("Advanced Options")); this->m_RepairButton->SetAnchor(Forms::AnchorStyles::Bottom | Forms::AnchorStyles::Left); // TODO: should hash every file against a downloaded manifest instead and @@ -91,7 +91,6 @@ CBaseSurface::CBaseSurface() this->m_AdvancedButton->SetSize({ 178, 43 }); this->m_AdvancedButton->SetLocation({ 188, 116 }); this->m_AdvancedButton->SetTabIndex(9); - this->m_AdvancedButton->SetEnabled(m_bIsInstalled); this->m_AdvancedButton->SetText(XorStr("Follow on YouTube")); this->m_AdvancedButton->SetAnchor(Forms::AnchorStyles::Bottom | Forms::AnchorStyles::Left); this->m_AdvancedButton->Click += &OnYouTubeClick;