mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 23:09:52 +02:00
Merge pull request #16176 from MiladNazeri/BUGZ-1456/HMD-audio-setting-shows-up-when-desktop-mode
BUGZ-1456/HMD-audio-setting-shows-up-when-desktop-mode
This commit is contained in:
commit
a5504c3780
1 changed files with 3 additions and 2 deletions
|
@ -266,6 +266,7 @@ Rectangle {
|
||||||
labelTextSize: 16;
|
labelTextSize: 16;
|
||||||
backgroundOnColor: "#E3E3E3";
|
backgroundOnColor: "#E3E3E3";
|
||||||
checked: AudioScriptingInterface.warnWhenMuted;
|
checked: AudioScriptingInterface.warnWhenMuted;
|
||||||
|
visible: bar.currentIndex !== 0;
|
||||||
onClicked: {
|
onClicked: {
|
||||||
AudioScriptingInterface.warnWhenMuted = checked;
|
AudioScriptingInterface.warnWhenMuted = checked;
|
||||||
checked = Qt.binding(function() { return AudioScriptingInterface.warnWhenMuted; }); // restore binding
|
checked = Qt.binding(function() { return AudioScriptingInterface.warnWhenMuted; }); // restore binding
|
||||||
|
@ -277,8 +278,8 @@ Rectangle {
|
||||||
id: audioLevelSwitch
|
id: audioLevelSwitch
|
||||||
height: root.switchHeight;
|
height: root.switchHeight;
|
||||||
switchWidth: root.switchWidth;
|
switchWidth: root.switchWidth;
|
||||||
anchors.top: warnMutedSwitch.bottom
|
anchors.top: warnMutedSwitch.visible ? warnMutedSwitch.bottom : parent.top
|
||||||
anchors.topMargin: 24
|
anchors.topMargin: bar.currentIndex === 0 ? 0 : 24
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
labelTextOn: qsTr("Audio Level Meter");
|
labelTextOn: qsTr("Audio Level Meter");
|
||||||
labelTextSize: 16;
|
labelTextSize: 16;
|
||||||
|
|
Loading…
Reference in a new issue