Commit b827895f authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/kicker: check model count before porting old favorite items

This unifies with Kickoff, and avoids re-populating the favorite model
when switching alternatives.

BUG: 456411
FIXED-IN: 5.24.6 5.25.3 5.26


(cherry picked from commit a0e10be0)
parent 0e78fd4c
Pipeline #201848 passed with stage
in 5 minutes and 15 seconds
......@@ -101,7 +101,9 @@ Item {
favoritesModel.initForClient("org.kde.plasma.kicker.favorites.instance-" + plasmoid.id)
if (!plasmoid.configuration.favoritesPortedToKAstats) {
favoritesModel.portOldFavorites(plasmoid.configuration.favoriteApps);
if (favoritesModel.count < 1) {
favoritesModel.portOldFavorites(plasmoid.configuration.favoriteApps);
}
plasmoid.configuration.favoritesPortedToKAstats = true;
}
......
Supports Markdown
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