dialog icon indicating copy to clipboard operation
dialog copied to clipboard

Not able to select MacOS Load

Open Nv7-GitHub opened this issue 5 years ago • 4 comments

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 avatar Aug 03 '20 04:08 Nv7-GitHub

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.

Nv7-GitHub avatar Aug 04 '20 15:08 Nv7-GitHub

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

sqweek avatar Aug 06 '20 15:08 sqweek

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.

Nv7-GitHub avatar Aug 06 '20 15:08 Nv7-GitHub

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 avatar Aug 11 '20 15:08 sqweek

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

sqweek avatar Feb 26 '24 14:02 sqweek