gkngkc / UnityStandaloneFileBrowser

A native file browser for unity standalone platforms
MIT License
2.01k stars 317 forks source link

#102 - exclusive fullscreen fix/workaround #133

Closed Matsyir closed 8 months ago

Matsyir commented 9 months ago

A simple workaround for #102.

The Sync functions are untested, but the Async ones work.

I wouldn't really expect this to get merged, but it seems simpler to share the fix as a PR.

The way it saves whether to switch back to exclusive fullscreen is not the most reliable, but it should work as long as only one file browser is used at once, which I imagine is most use cases.

There's probably a better way to "append" callbacks, but I don't know it and this works.

Matsyir commented 8 months ago

Actually getting some issues with this fix now, closing for now but the general idea is there.