homescreens/halcyon: Fix crash on favourite reorder

This commit is contained in:
Devin Lin 2023-03-05 23:06:35 -08:00
parent f7d51d851a
commit 716867475c
2 changed files with 4 additions and 0 deletions

View file

@ -26,6 +26,7 @@ MobileShell.HomeScreen {
Component.onCompleted: {
Halcyon.ApplicationListModel.loadApplications();
Halcyon.PinnedModel.applet = plasmoid.nativeInterface;
forceActiveFocus();
}

View file

@ -130,6 +130,9 @@ void PinnedModel::moveEntry(int fromRow, int toRow)
save();
// HACK: didn't seem to persist
if (!m_applet) {
return;
}
m_applet->config().sync();
}