mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-12 15:24:14 +03:00
lvgui: Fix add_switch description-default-value
This commit is contained in:
parent
de9a88a70f
commit
c1092ded48
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user