main: Instantiate EndSessionDialog
Using an exported `init()` function to create the object is an odd pattern, and not having the object referenced anywhere makes it harder to access for debugging or extensions. Just export the `EndSessionDialog` class and instantiate it like we do for other objects. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2997>
This commit is contained in:
@ -90,6 +90,7 @@ export let kbdA11yDialog = null;
|
||||
export let inputMethod = null;
|
||||
export let introspectService = null;
|
||||
export let locatePointer = null;
|
||||
export let endSessionDialog = null;
|
||||
|
||||
let _startDate;
|
||||
let _defaultCssStylesheet = null;
|
||||
@ -275,7 +276,7 @@ async function _initializeUI() {
|
||||
|
||||
// Provide the bus object for gnome-session to
|
||||
// initiate logouts.
|
||||
EndSessionDialog.init();
|
||||
endSessionDialog = new EndSessionDialog.EndSessionDialog();
|
||||
|
||||
// We're ready for the session manager to move to the next phase
|
||||
GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
|
||||
|
Reference in New Issue
Block a user