Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion [email protected]/extension.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import GObject from 'gi://GObject'
import GLib from 'gi://GLib'
import St from 'gi://St'
import * as Ext from 'resource:///org/gnome/shell/extensions/extension.js'
import * as Main from 'resource:///org/gnome/shell/ui/main.js'
Expand Down Expand Up @@ -28,7 +29,9 @@ class SystemdManager extends PanelMenu.Button {

this.menu.connect('open-state-changed', () => {
if (this.menu.isOpen) {
this.refresh(ext)
GLib.idle_add(GLib.PRIORITY_DEFAULT_IDLE, _ => {
this.refresh(ext)
})
}
})
}
Expand Down