refactor: MainWindow update window icon on palette change, prevent issues where the palette change does not change the icon and make its blend weirdly
This commit is contained in:
parent
8b513efc95
commit
a140b3bcca
1 changed files with 1 additions and 0 deletions
|
|
@ -1035,6 +1035,7 @@ void MainWindow::changeEvent(QEvent *e)
|
|||
QMainWindow::changeEvent(e);
|
||||
if (e->type() == QEvent::PaletteChange) {
|
||||
updateIconTheme();
|
||||
setWindowIcon(QIcon::fromTheme(kRevFqdnName));
|
||||
setTrayIcon();
|
||||
} else if (e->type() == QEvent::LanguageChange) {
|
||||
ui->retranslateUi(this);
|
||||
|
|
|
|||
Loading…
Reference in a new issue