Created attachment 168650 [details] Bug demonstration SUMMARY When I scan something (root, home, folder) and then press "Go to overview" button Filelight refuses to scan anything until I restart it. STEPS TO REPRODUCE 1. Scan anything 2. Press "Go to overview" 3. Try to scan something again OBSERVED RESULT Filelight ignores any other scan tasks EXPECTED RESULT To scan anything SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Kernel Version: 6.8.6-2-cachyos (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz Memory: 15.6 ГиБ of RAM Graphics Processor: AMD Radeon RX 6700 XT ADDITIONAL INFORMATION When I press buttons in unresponsive state it produces next error in terminal: qml: Page MapPage_QMLTYPE_109(0x63d134d81620) is already in the PageRow qml: Pushed pages do not conform to the rules. Please check the documentation. qml: push (file:///usr/lib/qt6/qml/org/kde/kirigami/PageRow.qml:223) makeMap (qrc:/ui/main.qml:127) slotScanRootFolder (qrc:/ui/main.qml:147) expression for onTriggered (qrc:/ui/main.qml:45)
I can also reproduce this issue on a clean Arch install in VM
Still happening in 24.05
Something broke in the pagestack handling in the qt6 port.
A possibly relevant merge request was started @ https://invent.kde.org/utilities/filelight/-/merge_requests/150
Git commit 35523f7818a63b0b610abff4c38f1543c04764eb by Han Young, on behalf of Harald Sitter. Committed on 18/07/2024 at 14:41. Pushed by hanyoung into branch 'master'. make makeMap and closeURL more reliable previously it failed to manipulate the stack correctly because of various changes in the Qt6 version. overall the new code should be more reliable now. we now somewhat consistently pop back to the intialPage and push the mappage on top. in case of new construction we also manually construct the page instead of letting kirigami do the work so we have control over the page's lifetime M +13 -5 src/qml/main.qml https://invent.kde.org/utilities/filelight/-/commit/35523f7818a63b0b610abff4c38f1543c04764eb