sync mainwindow icon to current application status

This commit is contained in:
walker0643 2018-03-03 14:34:34 -05:00
parent 5362dbc297
commit e396f8d55e
1 changed files with 2 additions and 0 deletions

View File

@ -288,6 +288,8 @@ void MainWindow::setIcon(qBarrierState state)
QIcon icon;
icon.addFile(barrierIconFiles[state]);
setWindowIcon(icon);
if (m_pTrayIcon)
m_pTrayIcon->setIcon(icon);
}