From 9d825229c63d8618802749e294126ff6e118042a Mon Sep 17 00:00:00 2001 From: Burt P Date: Sun, 18 Aug 2019 17:14:25 -0500 Subject: various: entry hide flag, fix text format report, fix key_*() funcs * fix key_is_highlighted() and key_wants_details() so that they don't look for flags in the label. * fix -r -f text, g_hash-related warnings from icon cache * add MODULE_FLAG_HIDE flag to hide module entries instead of using the '#' at the beginning of string hack, which didn't work everywhere, and screwed up translated strings. * hide GPU Drawing benchmark See: https://github.com/lpereira/hardinfo/issues/329 Signed-off-by: Burt P --- modules/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/devices.c') diff --git a/modules/devices.c b/modules/devices.c index 14b3708c..a13213ba 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -110,7 +110,7 @@ static ModuleEntry entries[] = { [ENTRY_DMI] = {N_("System DMI"), "computer.png", callback_dmi, scan_dmi, MODULE_FLAG_NONE}, [ENTRY_DMI_MEM] = {N_("Memory Devices"), "memory.png", callback_dmi_mem, scan_dmi_mem, MODULE_FLAG_NONE}, #if defined(ARCH_x86) || defined(ARCH_x86_64) - [ENTRY_DTREE] = {"#"}, + [ENTRY_DTREE] = {N_("Device Tree"), "devices.png", callback_dtree, scan_dtree, MODULE_FLAG_HIDE}, #else [ENTRY_DTREE] = {N_("Device Tree"), "devices.png", callback_dtree, scan_dtree, MODULE_FLAG_NONE}, #endif /* x86 or x86_64 */ -- cgit v1.2.3