mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:42:53 +02:00
better handling of 'modified' inside AdjustWearables dialog
This commit is contained in:
parent
e900e034a3
commit
1771e4c742
1 changed files with 8 additions and 2 deletions
|
@ -30,6 +30,7 @@ Rectangle {
|
||||||
function open(avatar) {
|
function open(avatar) {
|
||||||
adjustWearablesOpened(avatar.name);
|
adjustWearablesOpened(avatar.name);
|
||||||
|
|
||||||
|
modified = false;
|
||||||
visible = true;
|
visible = true;
|
||||||
avatarName = avatar.name;
|
avatarName = avatar.name;
|
||||||
wearablesModel = avatar.wearables;
|
wearablesModel = avatar.wearables;
|
||||||
|
@ -401,7 +402,7 @@ Rectangle {
|
||||||
colorScheme: hifi.colorSchemes.light
|
colorScheme: hifi.colorSchemes.light
|
||||||
|
|
||||||
property bool notify: false;
|
property bool notify: false;
|
||||||
onValueChanged: if(notify) notifyScaleChanged();
|
onRealValueChanged: if(notify) notifyScaleChanged();
|
||||||
|
|
||||||
function set(value) {
|
function set(value) {
|
||||||
notify = false;
|
notify = false;
|
||||||
|
@ -439,13 +440,18 @@ Rectangle {
|
||||||
color: hifi.buttons.red;
|
color: hifi.buttons.red;
|
||||||
colorScheme: hifi.colorSchemes.light;
|
colorScheme: hifi.colorSchemes.light;
|
||||||
text: "TAKE IT OFF"
|
text: "TAKE IT OFF"
|
||||||
onClicked: wearableDeleted(root.avatarName, getCurrentWearable().id);
|
onClicked: {
|
||||||
|
modified = true;
|
||||||
|
wearableDeleted(root.avatarName, getCurrentWearable().id);
|
||||||
|
}
|
||||||
enabled: wearablesCombobox.model.count !== 0
|
enabled: wearablesCombobox.model.count !== 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DialogButtons {
|
DialogButtons {
|
||||||
|
yesButton.enabled: modified
|
||||||
|
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: 57
|
anchors.bottomMargin: 57
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
Loading…
Reference in a new issue