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:
sithlord48 2025-10-27 22:18:00 -04:00 committed by Chris Rizzitello
parent 8b513efc95
commit a140b3bcca

View file

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