From acade0aabfc4b0e5ceb9829527c91a2c40157c93 Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Sat, 14 Dec 2024 12:45:55 +0100 Subject: [PATCH] Fix footer update after selecting None --- src/gui/footer/footer_line.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/footer/footer_line.cpp b/src/gui/footer/footer_line.cpp index 9b4fe1416a..4d2288d829 100644 --- a/src/gui/footer/footer_line.cpp +++ b/src/gui/footer/footer_line.cpp @@ -41,6 +41,9 @@ bool FooterLine::Create(footer::Item item_id, size_t index) { if (item_id >= footer::Item::_count) { item_id = footer::Item::none; + } else if (item_id == footer::Item::none) { + unregister(index); + return false; } auto &item = items[index];