mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
extensions: Unify how manager is injected into shared module
We unified most code paths earlier, but the common code will still import Main locally if no extension manager was injected before. Now that the old extensionUtils was split between extension and preferences, each of those modules can simply import the manager from its corresponding environment, and then inject it into the shared module. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2837>
This commit is contained in:
parent
3006c05ea5
commit
1354d2cf56
4 changed files with 8 additions and 9 deletions
|
|
@ -5,7 +5,6 @@ import Shew from 'gi://Shew';
|
|||
|
||||
import {ExtensionPrefsDialog} from './extensionPrefsDialog.js';
|
||||
import {ServiceImplementation} from './dbusService.js';
|
||||
import {setExtensionManager} from './extensions/sharedInternals.js';
|
||||
|
||||
const {deserializeExtension} = imports.misc.extensionUtils;
|
||||
const {loadInterfaceXML} = imports.misc.dbusUtils;
|
||||
|
|
@ -27,8 +26,7 @@ class ExtensionManager {
|
|||
}
|
||||
}
|
||||
|
||||
const extensionManager = new ExtensionManager();
|
||||
setExtensionManager(extensionManager);
|
||||
export const extensionManager = new ExtensionManager();
|
||||
|
||||
export const ExtensionsService = class extends ServiceImplementation {
|
||||
constructor() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue