Skip to content

Commit

Permalink
Remove redundant call to update tray icon during startup
Browse files Browse the repository at this point in the history
* Fix keepassxreboot#4768
* MainWindow::updateTrayIcon() is called in MainWindow::applySettingsChanges() earlier in construction. Calling this function twice in a row causes issues with startup times on Linux.
  • Loading branch information
droidmonkey committed Jun 28, 2020
1 parent 3596fab commit 247882e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,6 @@ MainWindow::MainWindow()
m_trayIconTriggerTimer.setSingleShot(true);
connect(&m_trayIconTriggerTimer, SIGNAL(timeout()), SLOT(processTrayIconTrigger()));

updateTrayIcon();

if (config()->hasAccessError()) {
m_ui->globalMessageWidget->showMessage(tr("Access error for config file %1").arg(config()->getFileName()),
MessageWidget::Error);
Expand Down

0 comments on commit 247882e

Please sign in to comment.