indicator: move KDBusService::Unique call to make sure it works on Windows

This commit is contained in:
Piyush Aggarwal 2021-06-15 13:48:39 +05:30
parent 9031ccadc3
commit ad35ae75d9

View file

@ -42,6 +42,8 @@ int main(int argc, char** argv)
i18n("(C) 2016 Aleix Pol Gonzalez")); i18n("(C) 2016 Aleix Pol Gonzalez"));
KAboutData::setApplicationData(about); KAboutData::setApplicationData(about);
KDBusService dbusService(KDBusService::Unique);
// Trigger loading the KIconLoader plugin // Trigger loading the KIconLoader plugin
about.setProgramLogo(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg"))); about.setProgramLogo(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg")));
@ -61,8 +63,6 @@ int main(int argc, char** argv)
return -1; return -1;
} }
KDBusService dbusService(KDBusService::Unique);
DevicesModel model; DevicesModel model;
model.setDisplayFilter(DevicesModel::Reachable | DevicesModel::Paired); model.setDisplayFilter(DevicesModel::Reachable | DevicesModel::Paired);
QMenu* menu = new QMenu; QMenu* menu = new QMenu;