mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-08 00:09:27 -05:00
hefty: bar: resources: dont keep settings open
This commit is contained in:
@@ -223,11 +223,11 @@ HBarWidgetWithPopout {
|
|||||||
|
|
||||||
component SysInfoPopupContent: W.ChoreographerLoader {
|
component SysInfoPopupContent: W.ChoreographerLoader {
|
||||||
id: sysInfoPopupContent
|
id: sysInfoPopupContent
|
||||||
property bool showSettings: false
|
|
||||||
|
|
||||||
sourceComponent: W.ChoreographerGridLayout {
|
sourceComponent: W.ChoreographerGridLayout {
|
||||||
id: popupRoot
|
id: popupRoot
|
||||||
rowSpacing: 10
|
rowSpacing: 10
|
||||||
|
property bool showSettings: false
|
||||||
|
|
||||||
onShownChanged: {
|
onShownChanged: {
|
||||||
if (shown) {
|
if (shown) {
|
||||||
@@ -266,13 +266,13 @@ HBarWidgetWithPopout {
|
|||||||
implicitSize: C.Appearance.rounding.normal * 2
|
implicitSize: C.Appearance.rounding.normal * 2
|
||||||
text: "settings"
|
text: "settings"
|
||||||
iconSize: 20
|
iconSize: 20
|
||||||
onClicked: sysInfoPopupContent.showSettings = !sysInfoPopupContent.showSettings;
|
onClicked: popupRoot.showSettings = !popupRoot.showSettings;
|
||||||
checked: sysInfoPopupContent.showSettings
|
checked: popupRoot.showSettings
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
W.FadeLoader {
|
W.FadeLoader {
|
||||||
shown: sysInfoPopupContent.showSettings
|
shown: popupRoot.showSettings
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
sourceComponent: SysInfoPopupConfig {}
|
sourceComponent: SysInfoPopupConfig {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user