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,7 +117,9 @@ pub fn refreshSession(self: *GlobalShortcuts, app: *App) !void {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
try self.request(.create_session);
|
if (self.map.count() > 0) {
|
||||||
|
try self.request(.create_session);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn shortcutActivated(
|
fn shortcutActivated(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue