From e63e260eab99d02bf666917027f6931d4cdce216 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Sun, 5 Jul 2026 11:02:43 +0200 Subject: [PATCH] fix(ui): drop {loc}/{time} placeholders when naming a radio preset The shared on-screen keyboard seeds {loc}/{time} placeholders on begin() for message composition, but they make no sense in a radio-preset name. Clear them right after opening the keyboard from the "+ Save current..." flow in both Settings > Radio and Tools > Repeater; the message-slot editor still keeps them. Co-Authored-By: Claude Opus 4.8 --- examples/companion_radio/ui-new/RepeaterScreen.h | 1 + examples/companion_radio/ui-new/SettingsScreen.h | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/companion_radio/ui-new/RepeaterScreen.h b/examples/companion_radio/ui-new/RepeaterScreen.h index 5b4682bb..07ed4b08 100644 --- a/examples/companion_radio/ui-new/RepeaterScreen.h +++ b/examples/companion_radio/ui-new/RepeaterScreen.h @@ -188,6 +188,7 @@ public: switch (_picker.onSelected(_picker.menu.selectedIndex(), p, rptTarget(p))) { case RadioPresetPicker::START_SAVE: _task->keyboard().begin("", (int)sizeof(p->user_radio_presets[0].name) - 1); + _task->keyboard().clearPlaceholders(); // {loc}/{time} are for messages, not preset names break; case RadioPresetPicker::APPLIED: the_mesh.applyRepeaterRadio(); // live if currently relaying on the profile diff --git a/examples/companion_radio/ui-new/SettingsScreen.h b/examples/companion_radio/ui-new/SettingsScreen.h index 7fea6e29..0461fe3b 100644 --- a/examples/companion_radio/ui-new/SettingsScreen.h +++ b/examples/companion_radio/ui-new/SettingsScreen.h @@ -732,6 +732,7 @@ public: switch (_picker.onSelected(_picker.menu.selectedIndex(), p, radioTarget(p))) { case RadioPresetPicker::START_SAVE: _kb->begin("", (int)sizeof(p->user_radio_presets[0].name) - 1); + _kb->clearPlaceholders(); // {loc}/{time} are for messages, not preset names break; case RadioPresetPicker::APPLIED: _task->applyRadioParams();