aboutsummaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-08-18 17:14:25 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-08-22 23:09:35 +0200
commit9d825229c63d8618802749e294126ff6e118042a (patch)
treeaef6be6d59c6b0c9316e3f97b40c0b7419849bd5 /modules/devices.c
parentf6b11e254c38a94b307df4f027a51030a1fcbfa7 (diff)
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 <pburt0@gmail.com>
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c2
1 files changed, 1 insertions, 1 deletions
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 */