From c1092ded485b6ed147ccf36a110dc243917c4add Mon Sep 17 00:00:00 2001 From: betaboon Date: Sun, 31 Jul 2022 19:49:42 +0200 Subject: [PATCH] lvgui: Fix add_switch description-default-value --- boot/lib/lvgui/lvgui/windows.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/lib/lvgui/lvgui/windows.rb b/boot/lib/lvgui/lvgui/windows.rb index cb3e49d4..72b05d34 100644 --- a/boot/lib/lvgui/lvgui/windows.rb +++ b/boot/lib/lvgui/lvgui/windows.rb @@ -38,7 +38,7 @@ module LVGUI end end - def add_switch(label, description: nil, initial: false) + def add_switch(label, description: "", initial: false) LVGUI::SwitchLine.new(@container).tap do |switch| add_to_focus_group(switch.switch_control) if initial