mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-26 14:58:35 +00:00
macOS: set error when there is no directory to open with
This commit is contained in:
@@ -52,6 +52,11 @@ class ServiceProvider: NSObject {
|
||||
}
|
||||
)
|
||||
|
||||
guard !directoryURLs.isEmpty else {
|
||||
error.pointee = Self.errorNoString
|
||||
return
|
||||
}
|
||||
|
||||
for url in directoryURLs {
|
||||
var config = Ghostty.SurfaceConfiguration()
|
||||
config.workingDirectory = url.path(percentEncoded: false)
|
||||
|
||||
Reference in New Issue
Block a user