diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-06-04 21:53:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 21:53:26 +0100 |
commit | 850af80089b3415265c4b4b744448509f776a52d (patch) | |
tree | d26698f9e947b9232f5b6510c83956aa37e13d98 /builtin/mainmenu/dlg_contentstore.lua | |
parent | c1e01bc638637efa788b5698238a465406bc3f5e (diff) | |
download | dragonfireclient-850af80089b3415265c4b4b744448509f776a52d.tar.xz |
Add buttons to ContentDB in game bar and configure world (#9944)
Diffstat (limited to 'builtin/mainmenu/dlg_contentstore.lua')
-rw-r--r-- | builtin/mainmenu/dlg_contentstore.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua index 76c398f5a..8ac4dba68 100644 --- a/builtin/mainmenu/dlg_contentstore.lua +++ b/builtin/mainmenu/dlg_contentstore.lua @@ -513,6 +513,17 @@ function create_store_dlg(type) search_string = "" cur_page = 1 + + if type then + -- table.indexof does not work on tables that contain `nil` + for i, v in pairs(filter_types_type) do + if v == type then + filter_type = i + break + end + end + end + store.filter_packages(search_string) return dialog_create("store", |