From dcafac1913364e5da690c5c01af8fe62b68bee55 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Fri, 25 Aug 2023 22:36:33 +0200 Subject: [PATCH] [fix] Combine bind section regex with bind panel file --- helpers/config | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/helpers/config b/helpers/config index a44582acf..5a41822cc 100644 --- a/helpers/config +++ b/helpers/config @@ -142,7 +142,16 @@ for panel_name, panel in loaded_toml.items(): bind_panel = panel.get('bind') for section_name, section in panel.items(): if not isinstance(section, dict): continue - bind_section = section.get('bind', bind_panel) + bind_section = section.get('bind') + if not bind_section: + bind_section = bind_panel + elif bind_section[-1] == ":" and bind_panel and ":" in bind_panel: + regex, bind_panel_file = bind_panel.split(":") + if ">" in bind_section: + bind_section = bind_section + bind_panel_file + else: + bind_section = regex + bind_section + bind_panel_file + for name, param in section.items(): if not isinstance(param, dict): continue