summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-24 00:38:04 +1100
committerquou <quou@disroot.org>2025-01-24 00:38:04 +1100
commit4c1d051529ccbc4f9cc26be63241703dc49b0995 (patch)
tree0542169ddc9231f5172502465cafd1388420cb42 /ui.cpp
parentc0dc2dbcd26ca307bd7985c8626a2a1425a961fa (diff)
UI label set_bool
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index 1e18fc0..8ef6c10 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -1267,6 +1267,13 @@ void UI::Label::set_float(float v) {
set_text(buf);
}
+void UI::Label::set_bool(bool v) {
+ if (v)
+ set_text("true");
+ else
+ set_text("false");
+}
+
static int title_handler(UI::Modal* modal, const UI::Message& msg) {
switch (msg.type) {
case UI::Message::Type::activate: {