gtk/GlobalShortcuts: don't request session with no shortcuts
There aren't any reason to pay the D-Bus tax if you don't use global shortcuts.pull/7510/head
parent
aa6c349545
commit
58cece07f0
|
|
@ -117,8 +117,10 @@ pub fn refreshSession(self: *GlobalShortcuts, app: *App) !void {
|
|||
);
|
||||
}
|
||||
|
||||
if (self.map.count() > 0) {
|
||||
try self.request(.create_session);
|
||||
}
|
||||
}
|
||||
|
||||
fn shortcutActivated(
|
||||
_: *gio.DBusConnection,
|
||||
|
|
|
|||
Loading…
Reference in New Issue