forked from Shinonome/dots-hyprland
rename showPerfProfileToggle -> showPerformanceProfileToggle
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import "root:/modules/common"
|
import qs.modules.common
|
||||||
import "root:/modules/common/widgets"
|
import qs.modules.common.widgets
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import Quickshell
|
import Quickshell
|
||||||
@@ -107,8 +107,8 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
active: Config.options.bar.utilButtons.showPerfProfileToggle
|
active: Config.options.bar.utilButtons.showPerformanceProfileToggle
|
||||||
visible: Config.options.bar.utilButtons.showPerfProfileToggle
|
visible: Config.options.bar.utilButtons.showPerformanceProfileToggle
|
||||||
sourceComponent: CircleUtilButton {
|
sourceComponent: CircleUtilButton {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
onClicked: event => {
|
onClicked: event => {
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ Singleton {
|
|||||||
property bool showMicToggle: false
|
property bool showMicToggle: false
|
||||||
property bool showKeyboardToggle: true
|
property bool showKeyboardToggle: true
|
||||||
property bool showDarkModeToggle: true
|
property bool showDarkModeToggle: true
|
||||||
property bool showPerfProfileToggle: false
|
property bool showPerformanceProfileToggle: false
|
||||||
}
|
}
|
||||||
property JsonObject tray: JsonObject {
|
property JsonObject tray: JsonObject {
|
||||||
property bool monochromeIcons: true
|
property bool monochromeIcons: true
|
||||||
|
|||||||
@@ -165,9 +165,9 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
ConfigSwitch {
|
ConfigSwitch {
|
||||||
text: "Performance Profile toggle"
|
text: "Performance Profile toggle"
|
||||||
checked: Config.options.bar.utilButtons.showPerfProfileToggle
|
checked: Config.options.bar.utilButtons.showPerformanceProfileToggle
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
Config.options.bar.utilButtons.showPerfProfileToggle = checked;
|
Config.options.bar.utilButtons.showPerformanceProfileToggle = checked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user