From d7e899d575b60eb66948c6a4f483e405b1bfb97a Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 2 Sep 2026 00:01:55 +0800 Subject: App: fix pgdn pgup bad return value condition --- popups/launcher/components/App.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'popups') diff --git a/popups/launcher/components/App.qml b/popups/launcher/components/App.qml index a44b2ec..492b459 100644 --- a/popups/launcher/components/App.qml +++ b/popups/launcher/components/App.qml @@ -65,7 +65,7 @@ IComponent { } pgup: function () { - if (listView.count === 0) + if (selectedIndex <= 0) return true; const pageSize = Math.floor(listView.height / (General.appIconSize + Launcher.innerMargin * 2)); @@ -77,7 +77,7 @@ IComponent { } pgdn: function () { - if (listView.count === 0) + if (selectedIndex === entries.length - 1) return true; const pageSize = Math.floor(listView.height / (General.appIconSize + Launcher.innerMargin * 2)); if (selectedIndex + pageSize >= listView.count) { -- cgit v1.2.3