mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:00:41 +02:00
Don't show "Reveal Scripts Folder" link when open Running Scripts in HMD
This commit is contained in:
parent
6c5335cfa7
commit
266e4c998b
1 changed files with 10 additions and 3 deletions
|
@ -24,7 +24,8 @@ Window {
|
||||||
resizable: true
|
resizable: true
|
||||||
destroyOnInvisible: true
|
destroyOnInvisible: true
|
||||||
x: 40; y: 40
|
x: 40; y: 40
|
||||||
implicitWidth: 400; implicitHeight: 728
|
implicitWidth: 400
|
||||||
|
implicitHeight: isHMD ? 695 : 728
|
||||||
minSize: Qt.vector2d(200, 300)
|
minSize: Qt.vector2d(200, 300)
|
||||||
|
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
|
@ -32,6 +33,7 @@ Window {
|
||||||
property var scripts: ScriptDiscoveryService;
|
property var scripts: ScriptDiscoveryService;
|
||||||
property var scriptsModel: scripts.scriptsModelFilter
|
property var scriptsModel: scripts.scriptsModelFilter
|
||||||
property var runningScriptsModel: ListModel { }
|
property var runningScriptsModel: ListModel { }
|
||||||
|
property bool isHMD: false
|
||||||
|
|
||||||
Settings {
|
Settings {
|
||||||
category: "Overlay.RunningScripts"
|
category: "Overlay.RunningScripts"
|
||||||
|
@ -44,7 +46,10 @@ Window {
|
||||||
onScriptCountChanged: updateRunningScripts();
|
onScriptCountChanged: updateRunningScripts();
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: updateRunningScripts()
|
Component.onCompleted: {
|
||||||
|
isHMD = HMD.active;
|
||||||
|
updateRunningScripts();
|
||||||
|
}
|
||||||
|
|
||||||
function setDefaultFocus() {
|
function setDefaultFocus() {
|
||||||
// Work around FocusScope of scrollable window.
|
// Work around FocusScope of scrollable window.
|
||||||
|
@ -237,7 +242,7 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiControls.VerticalSpacer {
|
HifiControls.VerticalSpacer {
|
||||||
height: hifi.dimensions.controlInterlineHeight - 3
|
height: hifi.dimensions.controlInterlineHeight - (!isHMD ? 3 : 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiControls.TextAction {
|
HifiControls.TextAction {
|
||||||
|
@ -248,10 +253,12 @@ Window {
|
||||||
onClicked: fileDialogHelper.openScriptsDirectory()
|
onClicked: fileDialogHelper.openScriptsDirectory()
|
||||||
colorScheme: hifi.colorSchemes.dark
|
colorScheme: hifi.colorSchemes.dark
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
visible: !isHMD
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiControls.VerticalSpacer {
|
HifiControls.VerticalSpacer {
|
||||||
height: hifi.dimensions.controlInterlineHeight - 3
|
height: hifi.dimensions.controlInterlineHeight - 3
|
||||||
|
visible: !isHMD
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue