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

This commit is contained in:
Leah Amelia Chen
2025-06-03 09:22:20 +02:00
committed by GitHub

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(