Show Elsewhen remove button only on mouse hover
This commit is contained in:
1 parent
ec76c070d2
commit
5a0e7348af
1 file changed
+1
-2
@@ -306,8 +306,7 @@ Rectangle {
|
||||
fontFamily: row.fontFamily
|
||||
fontSize: Style.font.bodySmall
|
||||
enabled: row.removable
|
||||
// Shown on the keyboard's pick too, so Delete's target is plain.
|
||||
opacity: row.removable && (row.lit || removeButton._hot) ? 1 : 0
|
||||
opacity: row.removable && (rowHover.hovered || removeButton._hot) ? 1 : 0
|
||||
visible: opacity > 0
|
||||
Behavior on opacity { NumberAnimation { duration: Style.duration(120) } }
|
||||
onClicked: row.panel.removeCityAt(row.index)
|
||||
|
||||
Reference in new issue
Block a user