Open panels above the notch; chat paperclip and in-chat file drop
- NSOpenPanel opened from BroV appeared under the notch (BroV floats above the menu bar): presentAboveNotch shows it one level higher, non-modally. Used by the terminal paperclip, the chat paperclip and the chat folder picker in Settings. - Chat: paperclip next to the input attaches a file; dropping a file over the open chat attaches it directly instead of the shelf animation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -635,7 +635,8 @@ struct SettingsView: View {
|
||||
panel.canChooseDirectories = true
|
||||
panel.canChooseFiles = false
|
||||
panel.allowsMultipleSelection = false
|
||||
if panel.runModal() == .OK, let url = panel.url {
|
||||
panel.presentAboveNotch { urls in
|
||||
guard let url = urls.first else { return }
|
||||
state.chatWorkingDirectory = url.path
|
||||
ChatTabs.shared.cli(for: state.activeTabId).newConversation()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user