diff options
author | Richard Hughes <richard@hughsie.com> | 2022-07-19 17:40:49 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-07-21 13:21:12 +0100 |
commit | e11929e0c151cf87e80db71bc804b7d9a5af2dcb (patch) | |
tree | 6a9c8ab4f9e1f9d1a57595d26e7bab0cb7329b61 /shell | |
parent | 590351051f127e391de02d179c1a07a24976e074 (diff) | |
download | gnome-control-center-e11929e0c151cf87e80db71bc804b7d9a5af2dcb.tar.gz |
firmware-security: Hide the panel when using a VM
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1972
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cc-panel-loader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c index 57b2d5bed..5fff89ba6 100644 --- a/shell/cc-panel-loader.c +++ b/shell/cc-panel-loader.c @@ -87,6 +87,7 @@ extern void cc_wacom_panel_static_init_func (void); #ifdef BUILD_WWAN extern void cc_wwan_panel_static_init_func (void); #endif /* BUILD_WWAN */ +extern void cc_firmware_security_panel_static_init_func (void); #define PANEL_TYPE(name, get_type, init_func) { name, get_type, init_func } @@ -112,7 +113,7 @@ static CcPanelLoaderVtable default_panels[] = PANEL_TYPE("info-overview", cc_info_overview_panel_get_type, NULL), PANEL_TYPE("keyboard", cc_keyboard_panel_get_type, NULL), PANEL_TYPE("location", cc_location_panel_get_type, NULL), - PANEL_TYPE("firmware-security",cc_firmware_security_panel_get_type, NULL), + PANEL_TYPE("firmware-security",cc_firmware_security_panel_get_type, cc_firmware_security_panel_static_init_func), PANEL_TYPE("lock", cc_lock_panel_get_type, NULL), PANEL_TYPE("microphone", cc_microphone_panel_get_type, NULL), PANEL_TYPE("mouse", cc_mouse_panel_get_type, NULL), |