Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
app: keep closed macOS windows from reopening on activation (#18518)
Eva H9a44d9d8de71
diff --git a/app/cmd/app/app_darwin.m b/app/cmd/app/app_darwin.mindex 18c43c58d..b544212a5 100644--- a/app/cmd/app/app_darwin.m+++ b/app/cmd/app/app_darwin.m@@ -595,7 +595,7 @@ static NSImage *ollamaApplicationIcon(void) {[fileMenu addItem:newChatItem];[fileMenu addItem:[NSMenuItem separatorItem]];- NSMenuItem *closeItem = [[NSMenuItem alloc] initWithTitle:@"Close Window" action:@selector(hide:) keyEquivalent:@"w"];+ NSMenuItem *closeItem = [[NSMenuItem alloc] initWithTitle:@"Close Window" action:@selector(performClose:) keyEquivalent:@"w"];[fileMenu addItem:closeItem];[fileMenuItem setSubmenu:fileMenu];[mainMenu addItem:fileMenuItem];@@ -1486,7 +1486,8 @@ didCompleteWithError:(NSError *)error {}- (BOOL)windowShouldClose:(id)sender {- [NSApp hide:nil];+ // Keep the webview alive without restoring the window on app activation.+ [sender orderOut:nil];return NO;}