ImGui-Addons icon indicating copy to clipboard operation
ImGui-Addons copied to clipboard

Remember Last Directory on Windows

Open Malkierian opened this issue 2 years ago • 2 comments

I saw #47, but saw that it was only for non-Windows use. Is there a particular reason why there isn't an option for it for Windows?

Malkierian avatar Nov 01 '23 18:11 Malkierian

To be more specific, I was wondering why there doesn't seem to be an option to set currentPath on Windows from an externally remembered setting, to allow for remembering across program restarts.

Malkierian avatar Nov 01 '23 20:11 Malkierian

To be more specific, I was wondering why there doesn't seem to be an option to set currentPath on Windows from an externally remembered setting, to allow for remembering across program restarts.

No you can do it for any OS. If you want to open the browser from the last opened directory during a single instance of the program then it's pretty easy to do and I mentioned the answer in #47.

If you want to always open the browser in a specific directory and make it work across program restarts, you just have to pass an extra parameter (the path) to my Filebrowser constructor and then pass that path to this function. Then set current_path to the new path you passed. It's pretty basic coding.

If you or anybody can make a PR, I can accept it or you can just modify it for your own use.

gallickgunner avatar Nov 03 '23 11:11 gallickgunner