We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f814230 commit 4b43f61Copy full SHA for 4b43f61
1 file changed
src/mainmenu.cpp
@@ -24,10 +24,16 @@ namespace lbz
24
25
bool get_display(t_uint32 index, pfc::string_base& out, t_uint32& flags) override
26
{
27
- if (!is_uuid(prefs::str_user_token.get_ptr())) flags = flag_disabled;
28
- else if (prefs::check_enabled.get_value()) flags = flag_checked;
29
- get_name(index, out);
30
- return true;
+ bool rv = mainmenu_commands::get_display(index, out, flags);
+ if (!is_uuid(prefs::str_user_token.get_ptr()))
+ {
+ flags |= flag_disabled;
31
+ }
32
+ else if (prefs::check_enabled.get_value())
33
34
+ flags |= flag_checked;
35
36
+ return rv;
37
}
38
39
t_uint32 get_command_count() override
0 commit comments