fix tabbar warning

This commit is contained in:
end-4
2025-07-17 15:45:35 +07:00
parent 158428e63e
commit d197787ab8
2 changed files with 1 additions and 2 deletions
@@ -66,7 +66,7 @@ ColumnLayout {
id: indicator
property int tabCount: root.tabButtonList.length
property real fullTabSize: root.width / tabCount;
property real targetWidth: tabBar.contentItem.children[0].children[tabBar.currentIndex].tabContentWidth
property real targetWidth: tabBar.contentItem?.children[0]?.children[tabBar.currentIndex]?.tabContentWidth ?? 0
implicitWidth: targetWidth
anchors {
@@ -74,7 +74,6 @@ QuickToggleButton {
id: warpStatusCollector
onStreamFinished: {
if (warpStatusCollector.text.length > 0) {
console.log("Showing warp")
root.visible = true
}
if (warpStatusCollector.text.includes("Unable")) {