extensionUtils: Always use manager to find current extension
Now that we always have an extension manager object, we can use the same code path for use from extensions and prefs. For that, inject the D-Bus service's extensionManager instead of the current extension. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2832>
This commit is contained in:

committed by
Marge Bot

parent
10672597c2
commit
df350cab0a
@ -7,6 +7,7 @@ import {ExtensionPrefsDialog} from './extensionPrefsDialog.js';
|
||||
import {ServiceImplementation} from './dbusService.js';
|
||||
|
||||
const {deserializeExtension} = imports.misc.extensionUtils;
|
||||
const {setExtensionManager} = imports.misc.extensionUtils;
|
||||
const {loadInterfaceXML} = imports.misc.dbusUtils;
|
||||
|
||||
const ExtensionsIface = loadInterfaceXML('org.gnome.Shell.Extensions');
|
||||
@ -27,6 +28,7 @@ class ExtensionManager {
|
||||
}
|
||||
|
||||
const extensionManager = new ExtensionManager();
|
||||
setExtensionManager(extensionManager);
|
||||
|
||||
export const ExtensionsService = class extends ServiceImplementation {
|
||||
constructor() {
|
||||
|
Reference in New Issue
Block a user