mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
properly restore desktop icons
This commit is contained in:
parent
6ede8da8d7
commit
ba9babb186
2 changed files with 6 additions and 3 deletions
|
|
@ -136,8 +136,6 @@ void ApplicationListModel::loadApplications()
|
|||
} else if (entry->property("Exec").isValid()) {
|
||||
KService::Ptr service(static_cast<KService* >(entry.data()));
|
||||
|
||||
qDebug() << " desktopEntryName: " << service->desktopEntryName();
|
||||
|
||||
if (service->isApplication() &&
|
||||
!blacklist.contains(service->desktopEntryName()) &&
|
||||
service->showOnCurrentPlatform() &&
|
||||
|
|
|
|||
|
|
@ -57,8 +57,13 @@ LauncherContainer {
|
|||
return root.flow;
|
||||
}
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (model.ApplicationLocationRole == ApplicationListModel.Desktop) {
|
||||
appletsLayout.restoreItem(delegate);
|
||||
}
|
||||
}
|
||||
onParentFromLocationChanged: {
|
||||
if (!editMode && parent != parentFromLocation) {
|
||||
if (!launcherDragManager.active && parent != parentFromLocation) {
|
||||
parent = parentFromLocation;
|
||||
if (model.ApplicationLocationRole == ApplicationListModel.Favorites) {
|
||||
plasmoid.nativeInterface.stackBefore(delegate, parentFromLocation.children[index]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue