mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-10 11:48:30 -05:00
Add proxy icon to title bar in OSX
This commit is contained in:
parent
93dcf8231f
commit
5776f43b98
@ -552,6 +552,16 @@ bool DatabaseTabWidget::isModified(int index)
|
|||||||
return indexDatabaseManagerStruct(index).modified;
|
return indexDatabaseManagerStruct(index).modified;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString DatabaseTabWidget::databasePath(int index)
|
||||||
|
{
|
||||||
|
if (index == -1) {
|
||||||
|
index = currentIndex();
|
||||||
|
}
|
||||||
|
|
||||||
|
return indexDatabaseManagerStruct(index).filePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void DatabaseTabWidget::updateTabName(Database* db)
|
void DatabaseTabWidget::updateTabName(Database* db)
|
||||||
{
|
{
|
||||||
int index = databaseIndex(db);
|
int index = databaseIndex(db);
|
||||||
|
@ -81,6 +81,7 @@ public slots:
|
|||||||
bool isModified(int index = -1);
|
bool isModified(int index = -1);
|
||||||
void performGlobalAutoType();
|
void performGlobalAutoType();
|
||||||
void lockDatabases();
|
void lockDatabases();
|
||||||
|
QString databasePath(int index = -1);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void tabNameChanged();
|
void tabNameChanged();
|
||||||
|
@ -530,6 +530,12 @@ void MainWindow::updateWindowTitle()
|
|||||||
windowTitle = QString("%1 - %2").arg(customWindowTitlePart, BaseWindowTitle);
|
windowTitle = QString("%1 - %2").arg(customWindowTitlePart, BaseWindowTitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (customWindowTitlePart.isEmpty() || stackedWidgetIndex == 1) {
|
||||||
|
setWindowFilePath("");
|
||||||
|
} else {
|
||||||
|
setWindowFilePath(m_ui->tabWidget->databasePath(tabWidgetIndex));
|
||||||
|
}
|
||||||
|
|
||||||
setWindowModified(m_ui->tabWidget->isModified(tabWidgetIndex));
|
setWindowModified(m_ui->tabWidget->isModified(tabWidgetIndex));
|
||||||
|
|
||||||
setWindowTitle(windowTitle);
|
setWindowTitle(windowTitle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user