mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-03 07:47:24 +00:00
trivial: Do not show superset plugin warnings when disabled
This commit is contained in:
parent
ad24f1623d
commit
e44ec2f0e4
@ -134,6 +134,8 @@ fu_util_show_plugin_warnings (FuUtilPrivate *priv)
|
||||
plugins = fu_engine_get_plugins (priv->engine);
|
||||
for (guint i = 0; i < plugins->len; i++) {
|
||||
FwupdPlugin *plugin = g_ptr_array_index (plugins, i);
|
||||
if (fwupd_plugin_has_flag(plugin, FWUPD_PLUGIN_FLAG_DISABLED))
|
||||
continue;
|
||||
if (!fwupd_plugin_has_flag (plugin, FWUPD_PLUGIN_FLAG_USER_WARNING))
|
||||
continue;
|
||||
flags |= fwupd_plugin_get_flags (plugin);
|
||||
|
@ -3018,6 +3018,8 @@ fu_util_show_plugin_warnings (FuUtilPrivate *priv)
|
||||
/* get a superset so we do not show the same message more than once */
|
||||
for (guint i = 0; i < plugins->len; i++) {
|
||||
FwupdPlugin *plugin = g_ptr_array_index (plugins, i);
|
||||
if (fwupd_plugin_has_flag(plugin, FWUPD_PLUGIN_FLAG_DISABLED))
|
||||
continue;
|
||||
if (!fwupd_plugin_has_flag (plugin, FWUPD_PLUGIN_FLAG_USER_WARNING))
|
||||
continue;
|
||||
flags |= fwupd_plugin_get_flags (plugin);
|
||||
|
Loading…
Reference in New Issue
Block a user