AirGuanZ / imgui-filebrowser

File browser implementation for dear-imgui. C++17 is required.
MIT License
658 stars 86 forks source link

Can't dock the window #53

Closed AaronFrans closed 1 month ago

AaronFrans commented 3 months ago

When the window is opened, it seems that it's not dockable with the ImGui docking

AirGuanZ commented 3 months ago

Hi,

That's currently expected since the file browser uses a popup window, which cannot be docked. I can add a 'NoPopup' flag to make it use a regular window, but more problems arise, such as whether a docked window should be closed when the user clicks 'OK'.

Check out the dockable branch to try the ImGuiFileBrowserFlags_NoPopup option. Any suggestions or pull requests are welcome.

AaronFrans commented 3 months ago

Thanks, on first try it seems to be working, I'm going to play around with it for a bit and see if I can come up with a good way to handle the OK/Cancel buttons. I might remove them if it's not a popup since I want to use the browser to monitor my files at runtime, kind of like how unity does its asset browser

AirGuanZ commented 1 month ago

I'll close this issue since it has been inactive for a long time. Feel free to reopen it if needed.