From bc933604e123e0cba8975b32ead53d68034b9332 Mon Sep 17 00:00:00 2001 From: protocol_1903 <67478786+protocol-1903@users.noreply.github.com> Date: Sat, 2 May 2026 15:37:14 -0700 Subject: [PATCH] Fixed codex search bar saving the search term when switching pages and closing the UI. Resolves https://github.com/pyanodon/pybugreports/issues/1409 --- changelog.txt | 1 + scripts/wiki/wiki.lua | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index dad77cd6..f69c8c04 100644 --- a/changelog.txt +++ b/changelog.txt @@ -13,6 +13,7 @@ Date: ??? - Fixed AM/FM text in beacon GUI not being localizable, again. Resolves https://github.com/pyanodon/pybugreports/issues/1337 - Fixed Dutch locale translating two fluids to the same name. Resolves https://github.com/pyanodon/pybugreports/issues/1305 - Fixed beacons not being useable with YAFC and other planner mods. Resolves https://github.com/pyanodon/pybugreports/issues/1449 + - Fixed codex search bar saving the search term when switching pages and closing the UI. Resolves https://github.com/pyanodon/pybugreports/issues/1409 --------------------------------------------------------------------------------------------------- Version: 3.0.44 Date: 2025-12-28 diff --git a/scripts/wiki/wiki.lua b/scripts/wiki/wiki.lua index 93098c6e..b48686aa 100644 --- a/scripts/wiki/wiki.lua +++ b/scripts/wiki/wiki.lua @@ -76,7 +76,6 @@ function Wiki.open_wiki(player) py_wiki_search.style.right_margin = -5 py_wiki_search.style.width = 200 py_wiki_search.visible = false - py_wiki_search.text = storage.wiki_page_search_query[player.index] or "" caption_flow.add {name = "py_wiki_search_button", type = "sprite-button", style = "frame_action_button_always_on", sprite = "utility/search_icon"}.visible = false caption_flow.add {name = "py_close_wiki", type = "sprite-button", style = "frame_action_button", sprite = "utility/close", hovered_sprite = "utility/close_black", clicked_sprite = "utility/close_black"} @@ -255,7 +254,6 @@ gui_events[defines.events.on_gui_text_changed]["py_wiki_search"] = function(even local search_query = event.element.text remote.call(searchable[1], searchable[2], search_query, contents, player) - storage.wiki_page_search_query[player.index] = search_query end remote.add_interface("pywiki", {