only show Audio menu title when appropriate

This commit is contained in:
Zach Pomerantz 2017-06-13 17:13:39 -04:00
parent 20c0dac8e8
commit e7da007acd
2 changed files with 17 additions and 1 deletions

View file

@ -31,11 +31,27 @@ Rectangle {
color: hifi.colors.baseGray;
// only show the title if loaded through a "loader"
function showTitle() {
return audio.parent.objectName == "loader";
}
Column {
y: 16 // padding does not work
spacing: 16
width: parent.width
RalewayRegular {
x: 16 // padding does not work
size: 16
color: "white"
text: audio.title
visible: audio.showTitle()
}
Separator { visible: audio.showTitle() }
Grid {
columns: 2
x: 16 // padding does not work

View file

@ -46,7 +46,7 @@ function onClicked() {
Entities.editEntity(entity, { textures: JSON.stringify({ "tex.close": HOME_BUTTON_TEXTURE }) });
shouldActivateButton = true;
shouldActivateButton = true;
tablet.loadQMLSource("../dialogs/Audio.qml");
tablet.loadQMLSource("../audio/Audio.qml");
onAudioScreen = true;
}
}