mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 13:12:39 +02:00
FB17023 - Make visible avatar url in the avatar app
This commit is contained in:
parent
b7d12c6b1c
commit
c13f27e2eb
2 changed files with 4 additions and 2 deletions
|
@ -480,7 +480,7 @@ Rectangle {
|
|||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
popup.showSpecifyAvatarUrl(function() {
|
||||
popup.showSpecifyAvatarUrl(currentAvatar.avatarUrl, function() {
|
||||
var url = popup.inputText.text;
|
||||
emitSendToScript({'method' : 'applyExternalAvatar', 'avatarURL' : url})
|
||||
}, function(link) {
|
||||
|
|
|
@ -3,7 +3,7 @@ import QtQuick 2.5
|
|||
MessageBox {
|
||||
id: popup
|
||||
|
||||
function showSpecifyAvatarUrl(callback, linkCallback) {
|
||||
function showSpecifyAvatarUrl(url, callback, linkCallback) {
|
||||
popup.onButton2Clicked = callback;
|
||||
popup.titleText = 'Specify Avatar URL'
|
||||
popup.bodyText = 'This will not overwrite your existing favorite if you are wearing one.<br>' +
|
||||
|
@ -12,6 +12,8 @@ MessageBox {
|
|||
'</a>'
|
||||
popup.inputText.visible = true;
|
||||
popup.inputText.placeholderText = 'Enter Avatar Url';
|
||||
popup.inputText.text = url;
|
||||
popup.inputText.selectAll();
|
||||
popup.button1text = 'CANCEL';
|
||||
popup.button2text = 'CONFIRM';
|
||||
|
||||
|
|
Loading…
Reference in a new issue