gtk/GlobalShortcuts: don't request session with no shortcuts (#7510)

pull/7517/head
Leah Amelia Chen 2025-06-03 09:22:20 +02:00 committed by GitHub
commit 108fab11a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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(