gnome-shell/js/dbusServices/extensions
Florian Müllner 7f7ae31fa3 dbusServices/extensions: Only show dialog when loaded
After the port to ESM, an extension's `prefs.js` file is imported
asynchronously. An unintended side effect of that is that we now
show the dialog before anything can be added to the window (either
by the extension, or the fallback error UI).

The delay almost always won't be noticeable to users, but it's
bad practice and prevents extensions from using some API that
only works before the window is realized.

To address the issue, add a `loaded` signal to the dialog that allows
the caller to postpone showing the window until the UI is ready.

Close: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7201
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3025>
2023-11-21 22:45:40 +00:00
..
css
ui
extensionPrefsDialog.js dbusServices/extensions: Only show dialog when loaded 2023-11-21 22:45:40 +00:00
extensionsService.js dbusServices/extensions: Only show dialog when loaded 2023-11-21 22:45:40 +00:00
main.js dbusServices: Port to ESM 2023-06-21 13:26:42 +02:00