Port to KService::startupNotify()

This commit is contained in:
Nicolas Fella 2023-09-30 16:15:42 +02:00
parent b668e69478
commit 16a3165cd9
2 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ void ApplicationListModel::load()
data.storageId = service->storageId();
data.uniqueId = service->storageId();
data.entryPath = service->exec();
data.startupNotify = service->property(QStringLiteral("StartupNotify")).toBool();
data.startupNotify = service->startupNotify().value_or(false);
unorderedList << data;
}

View file

@ -88,7 +88,7 @@ void DesktopModel::load()
data.storageId = service->storageId();
data.uniqueId = uniqueId;
data.entryPath = service->exec();
data.startupNotify = service->property(QStringLiteral("StartupNotify")).toBool();
data.startupNotify = service->startupNotify().value_or(false);
if (m_favorites.contains(uniqueId)) {
data.location = Favorites;
@ -250,7 +250,7 @@ void DesktopModel::addFavorite(const QString &storageId, int row, LauncherLocati
data.storageId = service->storageId();
data.uniqueId = uniqueId;
data.entryPath = service->exec();
data.startupNotify = service->property(QStringLiteral("StartupNotify")).toBool();
data.startupNotify = service->startupNotify().value_or(false);
bool favChanged = false;
if (location == Favorites) {