Try to update window title
This commit is contained in:
parent
21d42f2ce2
commit
0dc791bbba
|
|
@ -8,6 +8,7 @@
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"core:default",
|
"core:default",
|
||||||
"core:window:allow-close",
|
"core:window:allow-close",
|
||||||
|
"core:window:allow-set-title",
|
||||||
"shell:allow-open",
|
"shell:allow-open",
|
||||||
"fs:default",
|
"fs:default",
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2553,6 +2553,8 @@ async function _open(path) {
|
||||||
}
|
}
|
||||||
lastSaveIndex = undoStack.length;
|
lastSaveIndex = undoStack.length;
|
||||||
filePath = path
|
filePath = path
|
||||||
|
// Tauri thinks it is setting the title here, but it isn't getting updated
|
||||||
|
await getCurrentWindow().setTitle(await basename(filePath))
|
||||||
addRecentFile(path)
|
addRecentFile(path)
|
||||||
updateUI()
|
updateUI()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue