From 394dd9ffa5a5ba9fb0175b1c28e627bb74667cce Mon Sep 17 00:00:00 2001 From: ROllerozxa Date: Sat, 27 May 2023 16:35:01 +0200 Subject: [PATCH] Fix settings dialog not resetting filter when closed (#13513) --- builtin/mainmenu/settings/dlg_settings.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/builtin/mainmenu/settings/dlg_settings.lua b/builtin/mainmenu/settings/dlg_settings.lua index 751db87e6..20d788fee 100644 --- a/builtin/mainmenu/settings/dlg_settings.lua +++ b/builtin/mainmenu/settings/dlg_settings.lua @@ -519,5 +519,9 @@ end function create_settings_dlg() - return dialog_create("dlg_settings", get_formspec, buttonhandler, nil) + local dlg = dialog_create("dlg_settings", get_formspec, buttonhandler, nil) + + dlg.data.page_id = update_filtered_pages("") + + return dlg end