Set window icon in the whole application instead of in BaseWindow (#3554)

This makes icon visible on Ubuntu 20.04 while using AppImage build (and possibly some other setups as well).
This commit is contained in:
pajlada 2022-01-30 16:08:02 +01:00 committed by GitHub
parent f4c82dfa59
commit 6ef8e482c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -79,6 +79,8 @@ namespace {
QApplication::setStyle(QStyleFactory::create("Fusion"));
QApplication::setWindowIcon(QIcon(":/icon.ico"));
installCustomPalette();
}

View file

@ -130,8 +130,6 @@ float BaseWindow::qtFontScale() const
void BaseWindow::init()
{
this->setWindowIcon(QIcon(":/images/icon.png"));
#ifdef USEWINSDK
if (this->hasCustomWindowFrame())
{