extensions-tool: Include enabled info in details
Both an extension's ACTIVE state and whether it is enabled can be interesting, so include both when displaying extension details. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7004 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3073>
This commit is contained in:
parent
01e9724d75
commit
e8f125c57a
@ -231,7 +231,7 @@ print_extension_info (GVariantDict *info,
|
||||
{
|
||||
const char *uuid, *name, *desc, *path, *url, *author, *version_name;
|
||||
double state, version;
|
||||
gboolean has_version, has_version_name;
|
||||
gboolean has_version, has_version_name, enabled;
|
||||
|
||||
g_variant_dict_lookup (info, "uuid", "&s", &uuid);
|
||||
g_print ("%s\n", uuid);
|
||||
@ -264,6 +264,9 @@ print_extension_info (GVariantDict *info,
|
||||
else if (has_version)
|
||||
g_print (" %s: %.0f\n", _("Version"), version);
|
||||
|
||||
g_variant_dict_lookup (info, "enabled", "b", &enabled);
|
||||
g_print (" %s: %s\n", _("Enabled"), enabled ? _("Yes") : _("No"));
|
||||
|
||||
g_variant_dict_lookup (info, "state", "d", &state);
|
||||
g_print (" %s: %s\n", _("State"), extension_state_to_string (state));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user