Swap greying out code

Only Advanced Options needs to be greyed out if no install is found, youtube should always work.
This commit is contained in:
Kawe Mazidjatari 2023-10-22 01:54:43 +02:00
parent ac9d45b567
commit 5ea9cd985a

View File

@ -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;