Present fixed live ticker settings while preserving all stored options (by Codex)
This commit is contained in:
1 parent
e710937ca9
commit
9dd8731c66
6 files changed
+158
-8
No files matched your search
@@ -18,7 +18,7 @@ void App::settings_after_render() {
|
||||
if (auto *label = element("settings-search-count"))
|
||||
label->SetInnerRML(std::to_string(count) + (settings_query_.empty()
|
||||
? " Optionen"
|
||||
: " von 142 Optionen"));
|
||||
: " von "+std::to_string(live_settings_option_count())+" Optionen"));
|
||||
}
|
||||
if (settings_restore_scroll_) {
|
||||
context_->Update();
|
||||
@@ -107,12 +107,12 @@ void App::settings_filter() {
|
||||
if (auto *label = element("settings-search-count"))
|
||||
label->SetInnerRML(std::to_string(count) + (settings_query_.empty()
|
||||
? " Optionen"
|
||||
: " von 142 Optionen"));
|
||||
: " von "+std::to_string(live_settings_option_count())+" Optionen"));
|
||||
if (auto *select = dynamic_cast<Rml::ElementFormControlSelect *>(
|
||||
element("settings-jump"))) {
|
||||
std::string choices;
|
||||
std::string first;
|
||||
for (const auto &g : settings_catalogue().at("groups")) {
|
||||
for (const auto &g : live_settings_catalogue().at("groups")) {
|
||||
const auto id = g.at("id").get<std::string>();
|
||||
const bool shown = element("settings-group-" + id) != nullptr;
|
||||
if (shown && first.empty())
|
||||
|
||||
Reference in new issue
Block a user