You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for NiceGUI, a great framework ... this makes fun :)
The Problem:
We have a program with a main window (native window) in which you can work, but also do the work in your favorite browser.
When the name of a page is changed in the browser, the name of the main window is also changed. That doesn't look good.
The name of the main window should not change and remain with the name it was initialized with.
Would it be possible to integrate another parameter/switch to decide whether the title of the main window can be changed? This parameter could have the initial value True.
The text was updated successfully, but these errors were encountered:
I think it is not obvious that we change the title of the app when using ui.page_title. As @vitalogy described, it even changes the title of the app if the change is called within a separate tab in the web browser. I think it should only change the title if it is called "in the native view".
Ok, looks like we need to introduce a new client.is_native property to only call main_window.set_title for native clients. This could be done with some JavaScript checking for a pywebview object during handshake.
Does anyone want to give it a try?
Description
Thanks for NiceGUI, a great framework ... this makes fun :)
The Problem:
We have a program with a main window (native window) in which you can work, but also do the work in your favorite browser.
When the name of a page is changed in the browser, the name of the main window is also changed. That doesn't look good.
The name of the main window should not change and remain with the name it was initialized with.
I think it's because of this PR #3583
Would it be possible to integrate another parameter/switch to decide whether the title of the main window can be changed? This parameter could have the initial value True.
The text was updated successfully, but these errors were encountered: