Add a left-pointing chevron, more ChoiceGroup

This commit is contained in:
Henrik Rydgård committed 2026-10-26 23:01:21 +01:00
1 parent 49115bed93
commit 9ac9b2c23d
3 files changed
+15 -9

No files matched your search

+6 -4
View File
@@ -361,16 +361,18 @@ void RemoteISOScreen::CreateConnectTab(UI::ViewGroup *tab) {
firewallWarning_->SetTextColor(0xFF0000FF);
firewallWarning_->SetVisibility(V_GONE);
ChoiceGroup *group = tab->Add(new ChoiceGroup());
Choice *browseChoice = new Choice(ri->T("Browse Games"));
tab->Add(browseChoice)->OnClick.Handle(this, &RemoteISOScreen::HandleBrowse);
group->Add(browseChoice)->OnClick.Handle(this, &RemoteISOScreen::HandleBrowse);
if (WebServerStopping(WebServerFlags::DISCS)) {
tab->Add(new Choice(ri->T("Stopping..")))->SetDisabledPtr(&serverStopping_);
group->Add(new Choice(ri->T("Stopping..")))->SetDisabledPtr(&serverStopping_);
browseChoice->SetEnabled(false);
} else if (!WebServerStopped(WebServerFlags::DISCS)) {
tab->Add(new Choice(ri->T("Stop Sharing")))->OnClick.Handle(this, &RemoteISOScreen::HandleStopServer);
group->Add(new Choice(ri->T("Stop Sharing")))->OnClick.Handle(this, &RemoteISOScreen::HandleStopServer);
browseChoice->SetEnabled(false);
} else {
tab->Add(new Choice(ri->T("Share Games (Server)")))->OnClick.Handle(this, &RemoteISOScreen::HandleStartServer);
group->Add(new Choice(ri->T("Share Games (Server)")))->OnClick.Handle(this, &RemoteISOScreen::HandleStartServer);
browseChoice->SetEnabled(true);
}
}