diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-02 00:01:55 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-02 00:01:55 +0800 |
| commit | d7e899d575b60eb66948c6a4f483e405b1bfb97a (patch) | |
| tree | a6d93d84e3c6c30dfe6a41eebf38f395690af0d0 /popups | |
| parent | 6a697082ade32e15c534d05da7ae0b9f12f019d0 (diff) | |
App: fix pgdn pgup bad return value condition
Diffstat (limited to 'popups')
| -rw-r--r-- | popups/launcher/components/App.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
