sqweek / dialog

Simple cross-platform dialog API for go-lang
ISC License
509 stars 77 forks source link

Not able to select MacOS Load #50

Closed Nv7-GitHub closed 7 months ago

Nv7-GitHub commented 4 years ago

All button are grayed out and you are not allowed to do anything. My code is following:

directory, _ := dialog.Directory().Title("Load images").Browse()

Image: image

It looks like you can select the directories, but they don't do anything. The only two things on this window that work are Cancel and Open.

Nv7-GitHub commented 4 years ago

I found that it does start working when you put it in a MacOS app bundle. I still feel like creating an app bundle every time I change something is quite inconvenient, and I would love it if it worked without one.

sqweek commented 4 years ago

Is it only the directory chooser which acts this way? I'm wondering if you've stumbled on #15

Nv7-GitHub commented 4 years ago

No, the file loading dialog also does this. The only dialog that works is the saving dialog. But for some reason, these work when placed inside an App bundle.

sqweek commented 4 years ago

Yeah I dunno, it definitely works over here without an app bundle. Can you try go run example/wde/main.go from your github.com/sqweek/dialog directory? Clicking on the red box will open a load file dialog, and if I edit main.go (around line 40) to spawn a directory chooser I can interact with it no problems.

sqweek commented 7 months ago

Lacking further details, I'm optimistically calling this fixed by #81.