gtk: use exhaustive switch for initial-window

pull/7433/head
Jeffrey C. Ollie 2025-06-02 14:37:03 -05:00
parent 8824d11e1c
commit 649cca61eb
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 1 additions and 1 deletions

View File

@ -406,8 +406,8 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
//
// https://gitlab.gnome.org/GNOME/glib/-/blob/bd2ccc2f69ecfd78ca3f34ab59e42e2b462bad65/gio/gapplication.c#L2302
if (config.@"initial-window") switch (config.@"launched-from".?) {
.desktop, .cli => gio_app.activate(),
.dbus, .systemd => {},
else => gio_app.activate(),
};
// Internally, GTK ensures that only one instance of this provider exists in the provider list