mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +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()) {
|
} else if (entry->property("Exec").isValid()) {
|
||||||
KService::Ptr service(static_cast<KService* >(entry.data()));
|
KService::Ptr service(static_cast<KService* >(entry.data()));
|
||||||
|
|
||||||
qDebug() << " desktopEntryName: " << service->desktopEntryName();
|
|
||||||
|
|
||||||
if (service->isApplication() &&
|
if (service->isApplication() &&
|
||||||
!blacklist.contains(service->desktopEntryName()) &&
|
!blacklist.contains(service->desktopEntryName()) &&
|
||||||
service->showOnCurrentPlatform() &&
|
service->showOnCurrentPlatform() &&
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,13 @@ LauncherContainer {
|
||||||
return root.flow;
|
return root.flow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Component.onCompleted: {
|
||||||
|
if (model.ApplicationLocationRole == ApplicationListModel.Desktop) {
|
||||||
|
appletsLayout.restoreItem(delegate);
|
||||||
|
}
|
||||||
|
}
|
||||||
onParentFromLocationChanged: {
|
onParentFromLocationChanged: {
|
||||||
if (!editMode && parent != parentFromLocation) {
|
if (!launcherDragManager.active && parent != parentFromLocation) {
|
||||||
parent = parentFromLocation;
|
parent = parentFromLocation;
|
||||||
if (model.ApplicationLocationRole == ApplicationListModel.Favorites) {
|
if (model.ApplicationLocationRole == ApplicationListModel.Favorites) {
|
||||||
plasmoid.nativeInterface.stackBefore(delegate, parentFromLocation.children[index]);
|
plasmoid.nativeInterface.stackBefore(delegate, parentFromLocation.children[index]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue