[PR #13059] Fix single directory selector #12791

Open
opened 2025-11-12 17:06:49 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13059
Author: @levystar
Created: 11/12/2025
Status: 🔄 Open

Base: mainHead: patch-1


📝 Commits (2)

  • 18f3b17 Fix single directory selector
  • 42b7312 Style fix in conditional statement

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 app/dialog/cocoa/dlg.m (+1 -1)

📄 Description

app: fix singledirectory selection returning empty path.

Fixed a bug in the Cocoa dialog implementation where single directory
selection was not writing the selected path to the output buffer, causing
directory selection dialogs to always return empty strings to JavaScript
callbacks despite successful user selection.
Added the single file case to the existing code by eliminating the check of select multiple.

Fix Issue #12883


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13059 **Author:** [@levystar](https://github.com/levystar) **Created:** 11/12/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`18f3b17`](https://github.com/ollama/ollama/commit/18f3b17dbc631d458efa4d50b04993354653438f) Fix single directory selector - [`42b7312`](https://github.com/ollama/ollama/commit/42b7312d1774e525b6a65c2f50daabe2fe435874) Style fix in conditional statement ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `app/dialog/cocoa/dlg.m` (+1 -1) </details> ### 📄 Description app: fix singledirectory selection returning empty path. Fixed a bug in the Cocoa dialog implementation where single directory selection was not writing the selected path to the output buffer, causing directory selection dialogs to always return empty strings to JavaScript callbacks despite successful user selection. Added the single file case to the existing code by eliminating the check of select multiple. Fix Issue #12883 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the
pull-request
label 2025-11-12 17:06:49 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#12791
No description provided.