From a6f1170544b38ba248cd2e81ef2a4bb51599e74f Mon Sep 17 00:00:00 2001 From: Luke Howe Date: Sun, 30 Aug 2026 17:00:02 +0800 Subject: [PATCH] restore macos window proxy icon --- src/gui/MainWindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 9b39a62e4a..8952dc6946 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -1052,9 +1052,19 @@ void MainWindow::updateWindowTitle() if (customWindowTitlePart.isEmpty()) { windowTitle = QString("%1[*]").arg(BaseWindowTitle); } else { + // removing [*] from the QString seems to solve the * problem mentioned in pr #11542 + // but this was just a hacky see what happens so im not sure its an appropriate fix windowTitle = QString("%1[*] - %2").arg(customWindowTitlePart, BaseWindowTitle); } + // PasswordGeneratorScreen seemed like another place the proxy icon was not needed whilst visually testing + if (customWindowTitlePart.isEmpty() || stackedWidgetIndex == StackedWidgetIndex::SettingsScreen + || stackedWidgetIndex == StackedWidgetIndex::PasswordGeneratorScreen) { + setWindowFilePath(""); + } else { + setWindowFilePath(m_ui->tabWidget->databaseWidgetFromIndex(tabWidgetIndex)->database()->filePath()); + } + setWindowTitle(windowTitle); setWindowModified(isModified);