mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-10 04:52:43 +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) {
|
||||
adjustWearablesOpened(avatar.name);
|
||||
|
||||
modified = false;
|
||||
visible = true;
|
||||
avatarName = avatar.name;
|
||||
wearablesModel = avatar.wearables;
|
||||
|
@ -401,7 +402,7 @@ Rectangle {
|
|||
colorScheme: hifi.colorSchemes.light
|
||||
|
||||
property bool notify: false;
|
||||
onValueChanged: if(notify) notifyScaleChanged();
|
||||
onRealValueChanged: if(notify) notifyScaleChanged();
|
||||
|
||||
function set(value) {
|
||||
notify = false;
|
||||
|
@ -439,13 +440,18 @@ Rectangle {
|
|||
color: hifi.buttons.red;
|
||||
colorScheme: hifi.colorSchemes.light;
|
||||
text: "TAKE IT OFF"
|
||||
onClicked: wearableDeleted(root.avatarName, getCurrentWearable().id);
|
||||
onClicked: {
|
||||
modified = true;
|
||||
wearableDeleted(root.avatarName, getCurrentWearable().id);
|
||||
}
|
||||
enabled: wearablesCombobox.model.count !== 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DialogButtons {
|
||||
yesButton.enabled: modified
|
||||
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 57
|
||||
anchors.left: parent.left
|
||||
|
|
Loading…
Reference in a new issue