HoverableListItem: add tapped signal, remove inline TapHandlers
This commit is contained in:
parent
e712842424
commit
732a14e5cb
4 changed files with 14 additions and 15 deletions
|
|
@ -72,11 +72,9 @@ Column {
|
|||
entry.opacity = 1
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
if (!entry._pending)
|
||||
S.BluetoothService.toggleDevice(entry.modelData.mac, !entry.modelData.connected);
|
||||
}
|
||||
onTapped: {
|
||||
if (!entry._pending)
|
||||
S.BluetoothService.toggleDevice(entry.modelData.mac, !entry.modelData.connected);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue