From e3fd61251811666b4eac99405118b4d147d01548 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sat, 22 Oct 2022 07:28:43 -0400 Subject: [PATCH] ConfigDialog: fix a bug with default values (#9666) --- frontend/ui/widget/configdialog.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/configdialog.lua b/frontend/ui/widget/configdialog.lua index 395989578..1db7729cd 100644 --- a/frontend/ui/widget/configdialog.lua +++ b/frontend/ui/widget/configdialog.lua @@ -624,7 +624,7 @@ function ConfigOption:init() elseif arg == "⋮" then Notification:setNotifySource(Notification.SOURCE_BOTTOM_MENU_MORE) local default_value_original - if self.options[c].more_options_param.names then + if self.options[c].more_options_param and self.options[c].more_options_param.names then local option1 = self.config:findOptionByName(self.options[c].more_options_param.names[1]) local option2 = self.config:findOptionByName(self.options[c].more_options_param.names[2]) default_value_original = { option1.default_value, option2.default_value }