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
Leorize 2025-06-02 20:22:41 -05:00
parent aa6c349545
commit 58cece07f0
No known key found for this signature in database
GPG Key ID: F27DAB17D7AD45CE
1 changed files with 3 additions and 1 deletions

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(