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.
This commit is contained in:
Leorize
2025-06-02 20:22:41 -05:00
parent aa6c349545
commit 58cece07f0

View File

@@ -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(