Fix daemon hanging on Windows when loading the window icon

I'm not sure why this started failing suddenly (or if it's only on my
machine), but changing the icon from svg to png solves the problem.
This commit is contained in:
Albert Vaca Cintora 2023-06-28 00:03:08 +02:00
parent 1ba446d1c5
commit 0a0c990501
2 changed files with 2 additions and 1 deletions

View file

@ -42,7 +42,7 @@ public:
DesktopDaemon(QObject *parent = nullptr) DesktopDaemon(QObject *parent = nullptr)
: Daemon(parent) : Daemon(parent)
{ {
qApp->setWindowIcon(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg"))); qApp->setWindowIcon(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.png")));
} }
void askPairingConfirmation(Device *device) override void askPairingConfirmation(Device *device) override

View file

@ -45,5 +45,6 @@
</qresource> </qresource>
<qresource prefix="/icons/kdeconnect/"> <qresource prefix="/icons/kdeconnect/">
<file alias="kdeconnect.svg">app/sc-apps-kdeconnect.svg</file> <file alias="kdeconnect.svg">app/sc-apps-kdeconnect.svg</file>
<file alias="kdeconnect.png">app/128-apps-kdeconnect.png</file>
</qresource> </qresource>
</RCC> </RCC>