Merge branch 'work/niccolove/471241-write-the-commit-message-before-pushing' into 'master'

applets/pager: don't Show Desktop when scrolling pager

See merge request plasma/plasma-desktop!4166
This commit is contained in:
Niccolò Venerandi 2026-11-02 15:56:57 +01:00
commit a1d0cb1fb1

View file

@ -119,12 +119,17 @@ PlasmoidItem {
const nextPage = Plasmoid.configuration.wrapPage?
(pagerModel.currentPage + 1) % repeater.count :
Math.min(pagerModel.currentPage + 1, repeater.count - 1);
pagerModel.changePage(nextPage);
// At the last desktop: changePage() on the current one would toggle Show Desktop
if (nextPage !== pagerModel.currentPage) {
pagerModel.changePage(nextPage);
}
} else {
const previousPage = Plasmoid.configuration.wrapPage ?
(repeater.count + pagerModel.currentPage - 1) % repeater.count :
Math.max(pagerModel.currentPage - 1, 0);
pagerModel.changePage(previousPage);
if (previousPage !== pagerModel.currentPage) {
pagerModel.changePage(previousPage);
}
}
increment += (increment < 0) ? 1 : -1;