mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-26 11:56:46 -08:00
Moved dark icon logic into FilePath.
This commit is contained in:
1 parent
55271311c4
commit
4fa00b74ad
3 files changed
+16
-35
No files matched your search
+2
-13
@@ -773,8 +773,6 @@ bool MainWindow::saveLastDatabases()
|
||||
void MainWindow::updateTrayIcon()
|
||||
{
|
||||
if (isTrayIconEnabled()) {
|
||||
bool darkIcon = config()->get("GUI/DarkTrayIcon").toBool();
|
||||
|
||||
if (!m_trayIcon) {
|
||||
m_trayIcon = new QSystemTrayIcon(this);
|
||||
QMenu* menu = new QMenu(this);
|
||||
@@ -797,20 +795,11 @@ void MainWindow::updateTrayIcon()
|
||||
|
||||
m_trayIcon->setContextMenu(menu);
|
||||
|
||||
if(darkIcon){
|
||||
m_trayIcon->setIcon(filePath()->applicationIconDark());
|
||||
} else {
|
||||
m_trayIcon->setIcon(filePath()->applicationIcon());
|
||||
}
|
||||
|
||||
m_trayIcon->setIcon(filePath()->applicationIcon());
|
||||
m_trayIcon->show();
|
||||
}
|
||||
if (m_ui->tabWidget->hasLockableDatabases()) {
|
||||
if(darkIcon){
|
||||
m_trayIcon->setIcon(filePath()->trayIconUnlockedDark());
|
||||
} else {
|
||||
m_trayIcon->setIcon(filePath()->trayIconUnlocked());
|
||||
}
|
||||
m_trayIcon->setIcon(filePath()->trayIconUnlocked());
|
||||
}
|
||||
else {
|
||||
m_trayIcon->setIcon(filePath()->trayIconLocked());
|
||||
|
||||
Reference in new issue
Block a user