extensions: Add a SESSION_MODE extension type
This allows e.g. gnome-tweak-tool to present these extensions in a different way since they can't be disabled.
This commit is contained in:
@ -316,6 +316,8 @@ function _loadExtensions() {
|
||||
let finder = new ExtensionUtils.ExtensionFinder();
|
||||
finder.connect('extension-found', (finder, extension) => {
|
||||
loadExtension(extension);
|
||||
if (Main.sessionMode.enabledExtensions.indexOf(extension.uuid) != -1)
|
||||
extension.type = ExtensionUtils.ExtensionType.SESSION_MODE;
|
||||
});
|
||||
finder.scanExtensions();
|
||||
}
|
||||
|
Reference in New Issue
Block a user