Remove redundant call to update tray icon during startup

* Fix #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.
This commit is contained in:
Jonathan White 2020-06-23 21:21:48 -04:00
parent 3596fabc78
commit 247882eb54

View File

@ -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);