mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-03 03:11:57 +00:00
fix(ui-new): one '#' on a hashtag channel's favourite tile and slot list
Hashtag channel names already start with '#'; the tiles added another
("##test"). chanctl::bareName() is now the one place that strips it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,10 @@ namespace chanctl {
|
||||
|
||||
enum Result : uint8_t { OK, FULL, NO_NAME, NO_SECRET, BAD_SECRET, EXISTS, FAILED };
|
||||
|
||||
// A channel's name without the '#' a hashtag channel's starts with -- for a
|
||||
// label that puts its own '#' in front (as ui-new's tiles do), never "##test".
|
||||
static inline const char* bareName(const char* name) { return name[0] == '#' ? name + 1 : name; }
|
||||
|
||||
static const char* resultText(Result r) {
|
||||
switch (r) {
|
||||
case OK: return "Saved";
|
||||
|
||||
Reference in New Issue
Block a user