webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
2.63k stars 157 forks source link

`chromium_options[]` and `custom_profile` #240

Closed fibodevy closed 9 months ago

fibodevy commented 9 months ago

If a custom profile is set, chromium options are not applied, causing Chrome to offer a translation.

        if (!win->custom_profile) {
            for (int i = 0; i < (int)(sizeof(chromium_options) / sizeof(chromium_options[0])); i++) {
                c += sprintf(buffer + c, " %s", chromium_options[i]);
            }
        }

It should check if default profile is used (the real one), not if !win->custom_profile

hassandraga commented 9 months ago

Thank you for the report. Now webui_set_profile(myWin, "", "") will show the correct WebUI window style using the default local profile.

fibodevy commented 9 months ago

Fixed