mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 18:19:36 +01:00
UI: Use ChoiceGroup on more settings-like screens
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1a2d140652
commit
74bbd4b62e
9 files changed
+87
-86
No files matched your search
+4
-4
@@ -456,11 +456,11 @@ void JitDebugScreen::CreateViews() {
|
||||
topbar->Add(new Choice(di->T("Enable All")))->OnClick.Handle(this, &JitDebugScreen::OnEnableAll);
|
||||
|
||||
vert->Add(topbar);
|
||||
vert->Add(new ItemHeader(dev->T("Disabled JIT functionality")));
|
||||
ChoiceGroup *disabledFlags = vert->Add(new ChoiceGroup(dev->T("Disabled JIT functionality")));
|
||||
|
||||
for (auto flag : jitDisableFlags) {
|
||||
// Do not add translation of these.
|
||||
vert->Add(new BitCheckBox(&g_Config.uJitDisableFlags, (uint32_t)flag.flag, flag.name));
|
||||
disabledFlags->Add(new BitCheckBox(&g_Config.uJitDisableFlags, (uint32_t)flag.flag, flag.name));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -639,11 +639,11 @@ void FrameDumpTestScreen::CreateTabs() {
|
||||
auto dev = GetI18NCategory(I18NCat::DEVELOPER);
|
||||
|
||||
AddTab("General", dev->T("Dumps"), [this](UI::LinearLayout *parent) {
|
||||
parent->Add(new ItemHeader("GE Frame Dumps"));
|
||||
ChoiceGroup *dumps = parent->Add(new ChoiceGroup("GE Frame Dumps"));
|
||||
|
||||
for (auto &file : files_) {
|
||||
std::string url = framedumpsBaseUrl + file;
|
||||
Choice *c = parent->Add(new Choice(file));
|
||||
Choice *c = dumps->Add(new Choice(file));
|
||||
c->SetTag(url);
|
||||
c->OnClick.Add([this, url = Path(url)](UI::EventParams &e) {
|
||||
INFO_LOG(Log::Common, "Trying to launch '%s'", url.c_str());
|
||||
|
||||
Reference in new issue
Block a user