From 1399d3abc6fe0bc06b82f70a0fe02b25a7058418 Mon Sep 17 00:00:00 2001 From: 7w1 Date: Sun, 19 Jul 2026 14:20:13 -0500 Subject: [PATCH] fix(windows): correct title bar name --- src/app/components/tauri/WindowsTitleBar.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/components/tauri/WindowsTitleBar.tsx b/src/app/components/tauri/WindowsTitleBar.tsx index 446b5d2a7..13543515f 100644 --- a/src/app/components/tauri/WindowsTitleBar.tsx +++ b/src/app/components/tauri/WindowsTitleBar.tsx @@ -91,6 +91,7 @@ function CloseIcon() { export function WindowsTitleBar() { const [maximized, setMaximized] = useState(false); + const [windowTitle, setWindowTitle] = useState('Sable'); const appWindowRef = useRef(null); const snapTimerRef = useRef(undefined); const isWindowsDesktopTauri = isTauri() && osType() === 'windows'; @@ -114,6 +115,15 @@ export function WindowsTitleBar() { let unlistenResize: (() => void) | undefined; let unlistenTracking: (() => void) | undefined; + appWindow + .title() + .then((title) => { + if (mounted) setWindowTitle(title); + }) + .catch((error) => { + log.warn('Failed to read window title:', error); + }); + const syncMaximized = async () => { try { const isMaximizedState = await appWindow.isMaximized(); @@ -245,7 +255,7 @@ export function WindowsTitleBar() {