mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 11:35:26 +02:00
move selected avatar to the beginning of the page
This commit is contained in:
parent
e0a8d90141
commit
10e5f03f5e
1 changed files with 4 additions and 2 deletions
|
@ -39,7 +39,7 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
selectedAvatarId = allAvatars.get(1).url
|
||||
selectedAvatarId = allAvatars.get(0).url
|
||||
console.debug('wearables: ', selectedAvatar.wearables)
|
||||
|
||||
view.setPage(0)
|
||||
|
@ -540,7 +540,9 @@ Rectangle {
|
|||
popup.onButton2Clicked = function() {
|
||||
selectedAvatarId = currentItem.url;
|
||||
popup.close();
|
||||
delegateRoot.GridView.view.currentIndex = index;
|
||||
|
||||
pageOfAvatars.move(index, 0, 1);
|
||||
delegateRoot.GridView.view.currentIndex = 0;
|
||||
}
|
||||
popup.open();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue