Commit 8df8e2c1 authored by Marco Martin's avatar Marco Martin

dinamically realloc maxFavoriteCount

parent e2482a37
......@@ -339,6 +339,7 @@ void ApplicationListModel::setMaxFavoriteCount(int count)
for (auto &app : m_applicationList) {
if (i >= count && app.location == Favorites) {
app.location = Grid;
emit dataChanged(index(i, 0), index(i, 0));
}
++i;
}
......
......@@ -72,6 +72,9 @@ Text {
}
//END functions
onWidthChanged: plasmoid.nativeInterface.applicationListModel.maxFavoriteCount = Math.floor(Math.min(width, height) / launcher.cellWidth)
onHeightChanged: plasmoid.nativeInterface.applicationListModel.maxFavoriteCount = Math.floor(Math.min(width, height) / launcher.cellWidth)
Timer {
id: autoScrollTimer
property bool scrollDown: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment