summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index d44548a..a2a1a99 100644
--- a/main.lua
+++ b/main.lua
@@ -609,6 +609,7 @@ local function open_option_title_info(title, info)
local m = {
options = options,
title = title,
+ type = 'info',
}
if info.cover_big and info.cover_big ~= '' then
m.img_url = info.cover_big
@@ -869,6 +870,10 @@ end
local function toggle_menu_sort()
local menu = menus[depth]
+ if menu.type ~= 'group' and menu.type ~= 'search' then
+ return
+ end
+
local key = menu.type == 'search' and 'search_options' or 'options'
if not menu['sorted_' .. key] then