mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
CR fixes
This commit is contained in:
parent
dfac0d88a2
commit
8357f1f9b5
2 changed files with 5 additions and 3 deletions
|
@ -728,7 +728,7 @@ Rectangle {
|
||||||
top: parent.top
|
top: parent.top
|
||||||
leftMargin: 20
|
leftMargin: 20
|
||||||
}
|
}
|
||||||
width: 322
|
width: root.isLoggedIn ? 322 : 242
|
||||||
height: 36
|
height: 36
|
||||||
|
|
||||||
radius: 4
|
radius: 4
|
||||||
|
@ -790,6 +790,8 @@ Rectangle {
|
||||||
glyph: model.glyph
|
glyph: model.glyph
|
||||||
text: model.name
|
text: model.name
|
||||||
|
|
||||||
|
visible: root.isLoggedIn || model.sortString != "my_likes"
|
||||||
|
|
||||||
checked: ListView.isCurrentItem
|
checked: ListView.isCurrentItem
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
@ -185,7 +185,7 @@ Rectangle {
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
}
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if(isLoggedIn) {
|
if (isLoggedIn) {
|
||||||
root.liked = !root.liked;
|
root.liked = !root.liked;
|
||||||
root.likes = root.liked ? root.likes + 1 : root.likes - 1;
|
root.likes = root.liked ? root.likes + 1 : root.likes - 1;
|
||||||
MarketplaceScriptingInterface.marketplaceItemLike(root.item_id, root.liked);
|
MarketplaceScriptingInterface.marketplaceItemLike(root.item_id, root.liked);
|
||||||
|
@ -203,7 +203,7 @@ Rectangle {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
height: width*0.5625
|
height: width * 0.5625
|
||||||
|
|
||||||
source: root.image_url
|
source: root.image_url
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
|
|
Loading…
Reference in a new issue