mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:57:43 +02:00
FB17982 Avatar App reloads existing selected bookmark on app relaunch
This commit is contained in:
parent
f5ebdfa233
commit
daf81bbcb8
1 changed files with 8 additions and 1 deletions
|
@ -175,7 +175,14 @@ Rectangle {
|
||||||
displayNameInput.text = getAvatarsData.displayName;
|
displayNameInput.text = getAvatarsData.displayName;
|
||||||
currentAvatarSettings = getAvatarsData.currentAvatarSettings;
|
currentAvatarSettings = getAvatarsData.currentAvatarSettings;
|
||||||
|
|
||||||
updateCurrentAvatarInBookmarks(currentAvatar);
|
var bookmarkAvatarIndex = allAvatars.findAvatarIndexByValue(currentAvatar);
|
||||||
|
if (bookmarkAvatarIndex === -1) {
|
||||||
|
currentAvatar.name = '';
|
||||||
|
} else {
|
||||||
|
currentAvatar.name = allAvatars.get(bookmarkAvatarIndex).name;
|
||||||
|
allAvatars.move(bookmarkAvatarIndex, 0, 1);
|
||||||
|
}
|
||||||
|
view.setPage(0);
|
||||||
} else if (message.method === 'updateAvatarInBookmarks') {
|
} else if (message.method === 'updateAvatarInBookmarks') {
|
||||||
updateCurrentAvatarInBookmarks(currentAvatar);
|
updateCurrentAvatarInBookmarks(currentAvatar);
|
||||||
} else if (message.method === 'selectAvatarEntity') {
|
} else if (message.method === 'selectAvatarEntity') {
|
||||||
|
|
Loading…
Reference in a new issue