webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and HTML5 in the frontend, all in a lightweight portable lib.
https://webui.me
MIT License
2.35k stars 144 forks source link

`webui_set_root_folder` is broken #385

Closed jinzhongjia closed 1 month ago

jinzhongjia commented 1 month ago

This function was broken in recent updates and does not read the file correctly

system: windows11 branch: main

image image

hassandraga commented 1 month ago

I guess you are using an old commit, it should be (C)2024 https://github.com/webui-dev/webui/blob/0878256bf8e46207962e6dc452f17369f5d54ffe/examples/C/text-editor/ui/index.html#L30

hassandraga commented 1 month ago

Also the last one is broken. I'm working on it. Thank you for the report @jinzhongjia

hassandraga commented 1 month ago

Fixed (https://github.com/webui-dev/webui/commit/4694a2938931d814e0f318f5def2ef470b962f00).