Read about our upcoming Code of Conduct on this issue

Commit 8a9b18e8 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

menu: do not draw on the screen when using menu.get/set from scripts

(some update functions may use custom drawing code; this should not run)

branch : lua_fix
parent e14e1688cd4f
......@@ -6514,6 +6514,7 @@ static char* menu_get_str_value_from_script_do(const char* name, const char* ent
/* not thread-safe; must be guarded by menu_sem */
entry_default_display_info(entry, info);
info->can_custom_draw = 0;
if (entry->update) entry->update(entry, info);
return info->value;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment