forked from Shinonome/dots-hyprland
fix tabbar warning
This commit is contained in:
@@ -66,7 +66,7 @@ ColumnLayout {
|
|||||||
id: indicator
|
id: indicator
|
||||||
property int tabCount: root.tabButtonList.length
|
property int tabCount: root.tabButtonList.length
|
||||||
property real fullTabSize: root.width / tabCount;
|
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
|
implicitWidth: targetWidth
|
||||||
anchors {
|
anchors {
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ QuickToggleButton {
|
|||||||
id: warpStatusCollector
|
id: warpStatusCollector
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
if (warpStatusCollector.text.length > 0) {
|
if (warpStatusCollector.text.length > 0) {
|
||||||
console.log("Showing warp")
|
|
||||||
root.visible = true
|
root.visible = true
|
||||||
}
|
}
|
||||||
if (warpStatusCollector.text.includes("Unable")) {
|
if (warpStatusCollector.text.includes("Unable")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user