mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-09 04:21:08 -05:00
Merge branch 'release/2.6.2' into develop
This commit is contained in:
commit
e1c2537084
32 changed files with 1109 additions and 851 deletions
|
|
@ -1274,6 +1274,8 @@ bool MainWindow::saveLastDatabases()
|
|||
void MainWindow::updateTrayIcon()
|
||||
{
|
||||
if (isTrayIconEnabled()) {
|
||||
QApplication::setQuitOnLastWindowClosed(false);
|
||||
|
||||
if (!m_trayIcon) {
|
||||
m_trayIcon = new QSystemTrayIcon(this);
|
||||
auto* menu = new QMenu(this);
|
||||
|
|
@ -1312,6 +1314,8 @@ void MainWindow::updateTrayIcon()
|
|||
m_trayIcon->setIcon(resources()->trayIconLocked());
|
||||
}
|
||||
} else {
|
||||
QApplication::setQuitOnLastWindowClosed(true);
|
||||
|
||||
if (m_trayIcon) {
|
||||
m_trayIcon->hide();
|
||||
delete m_trayIcon;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue