tauri
tauri copied to clipboard
[feat] Make Window Title Available in appWindow Instance
Describe the problem
It's tricky when making custom title bars for a window—or trying to update the window title with something based on the current title—to actually pin down in code what the current title is.
Describe the solution you'd like
On the appWindow
level, we have the ability to call appWindow.setTitle("...")
. It would be good if we could get a reference to the current title here as well. A property of appWindow.title
would probably be best, but exposing it through appWindow.getTitle()
would also work fine.
Alternatives considered
No response
Additional context
No response
/upstream tauri-apps/tao
Upstream issue at https://github.com/tauri-apps/tao/issues/546 has been closed.
Is this in the latest version of tauri? I'm getting a Uncaught TypeError: appWindow.title is not a function
The latest https://www.npmjs.com/package/@tauri-apps/api, is not 1.2.3 :(, it's been 3 months.
1.3 is currently in internal audit so it hopefully shouldn't take much longer to get your hands on it.