Skip to content

Commit 8633796

Browse files
committed
fix blurry window icon on Linux
Seems to have been fault of Qt trying to set it, apparently. So just don't set it and leave it to DE to handle it by .desktop file association!!! (I am losing my fucking sanity a bit perhaps with all these random issues)
1 parent 95a7d07 commit 8633796

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

resources/layouts/mainwindow.ui

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
<property name="windowTitle">
1717
<string>MainWindow</string>
1818
</property>
19-
<property name="windowIcon">
20-
<iconset resource="../icons-uncso2.qrc">
21-
<normaloff>:/icons/uncso2.svg</normaloff>:/icons/uncso2.svg</iconset>
22-
</property>
2319
<property name="locale">
2420
<locale language="English" country="UnitedStates"/>
2521
</property>

sources/uncso2app.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ void CUnCSO2App::SetupSettingsInfo()
2929
this->setApplicationName( "UnCSO2" );
3030
this->setDesktopFileName( "tf.harmony.UnCSO2" );
3131
this->setApplicationVersion( QStringLiteral( UNCSO2_VERSION ) );
32+
#ifdef _WIN32
33+
this->setWindowIcon( QIcon( QStringLiteral( ":/icons/uncso2.svg" ) ) );
34+
#endif
3235
}
3336

3437
bool CUnCSO2App::ShouldLoadOwnIcons()

0 commit comments

Comments
 (0)