gnome-shell/js/dbusServices
Florian Müllner 8083df5e35 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>
(cherry picked from commit 7f7ae31fa3)
2023-11-30 18:44:58 +01:00
..
extensions dbusServices/extensions: Only show dialog when loaded 2023-11-30 18:44:58 +01:00
notifications js: Port dbusUtils to ESM 2023-08-07 19:05:50 +00:00
screencast Revert "screencastService: Add dmabuf/GL pipeline" 2023-10-31 22:45:56 +00:00
screensaver js: Port dbusUtils to ESM 2023-08-07 19:05:50 +00:00
dbus-service.in dbusServices: Port to ESM 2023-06-21 13:26:42 +02:00
dbus-service.service.in dbusServices: Port to ESM 2023-06-21 13:26:42 +02:00
dbusService.js cleanup: Fixup wrong JSDoc comments 2023-08-09 15:10:38 +00:00
meson.build dbusServices/screencast: Install unconditionally 2022-05-20 12:00:22 +00:00
org.gnome.ScreenSaver.src.gresource.xml dbusServices: Refactor service utilities from fileUtils into dbusUtils 2022-07-05 03:41:41 -04:00
org.gnome.Shell.Extensions.src.gresource.xml extensions: Provide separate implementations 2023-07-15 13:16:42 +02:00
org.gnome.Shell.Notifications.src.gresource.xml dbusServices: Refactor service utilities from fileUtils into dbusUtils 2022-07-05 03:41:41 -04:00
org.gnome.Shell.Screencast.src.gresource.xml screencastService: Signal errors via the internal dbus interface 2023-04-26 13:35:57 +02:00