mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +00:00
homescreens/halcyon: Fix crash on favourite reorder
This commit is contained in:
parent
f7d51d851a
commit
716867475c
2 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ MobileShell.HomeScreen {
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
Halcyon.ApplicationListModel.loadApplications();
|
Halcyon.ApplicationListModel.loadApplications();
|
||||||
|
Halcyon.PinnedModel.applet = plasmoid.nativeInterface;
|
||||||
forceActiveFocus();
|
forceActiveFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,9 @@ void PinnedModel::moveEntry(int fromRow, int toRow)
|
||||||
save();
|
save();
|
||||||
|
|
||||||
// HACK: didn't seem to persist
|
// HACK: didn't seem to persist
|
||||||
|
if (!m_applet) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_applet->config().sync();
|
m_applet->config().sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue