Commit 72486b58 authored by Florian Müllner's avatar Florian Müllner

shell-extensions: Use kill-switch to disable extensions ...

... instead of clearing the user-defined list of enabled extensions.

https://bugzilla.gnome.org/show_bug.cgi?id=778665
parent 21690a7f
......@@ -28,7 +28,7 @@
#include "gsm-shell-extensions.h"
#define SHELL_SCHEMA "org.gnome.shell"
#define ENABLED_EXTENSIONS_KEY "enabled-extensions"
#define DISABLE_EXTENSIONS_KEY "disable-user-extensions"
#define SHELL_EXTENSIONS_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSM_TYPE_SHELL_EXTENSIONS, GsmShellExtensionsPrivate))
......@@ -184,9 +184,9 @@ gsm_shell_extensions_init (GsmShellExtensions *self)
gboolean
gsm_shell_extensions_disable_all (GsmShellExtensions *self)
{
return g_settings_set_strv (self->priv->settings,
ENABLED_EXTENSIONS_KEY,
NULL);
return g_settings_set_boolean (self->priv->settings,
DISABLE_EXTENSIONS_KEY,
TRUE);
}
guint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment