Load the theme resource explictly

Otherwise they won't be loaded automatically at startup leading to lots
of missing icons. Since they're now in a static library they need that
explicit loading.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2021-02-02 17:02:02 +01:00
parent 0521dce174
commit 55fd0562de
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -52,6 +52,7 @@ void warnSystray()
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
Q_INIT_RESOURCE(resources); Q_INIT_RESOURCE(resources);
Q_INIT_RESOURCE(theme);
// Work around a bug in KDE's qqc2-desktop-style which breaks // Work around a bug in KDE's qqc2-desktop-style which breaks
// buttons with icons not based on a name, by forcing a style name // buttons with icons not based on a name, by forcing a style name