qml: MainWindow: Scan finished, navigating to clean page
qml: treeData changed, new count: 0
qml: CleanPage completed, tree data count: 0
qml: Manual check treeResult count: 6
qrc:/CleanMyDeepin/qml/CleanPage.qml:142: TypeError: Property 'hasChildren' of object ScanManager(0x7ffda9d97550) is not a function
[INFO] Scan finished with 163615 files, 4008 directories
if (debug) console.log("MouseArea: New expanded state:", node.expanded);
- }
+ updateHeight();
}
}
diff
User
出现两个错误:
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:164:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:183:9: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:102:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:158:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:164:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:183:9: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:102:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:158:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:164:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:183:9: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:102:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:158:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:164:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:183:9: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:102:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:158:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:164:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:183:9: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:102:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:158:17: Unable to assign [undefined] to bool
qrc:/CleanMyDeepin/qml/components/FileTreeItem.qml:127: ReferenceError: debug is not defined
Assistant
我看到问题了。这些错误是因为属性访问和类型转换的问题。让我们修复这些问题:
diff
Item {
id: fileTreeItem
- property var node
+ property var node: ({}) // 初始化为空对象
property real scaleFactor: 1
property bool debug: false