mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix not reliably being able to select "None" in Graphics settings
This commit is contained in:
parent
1eb6fa425c
commit
b4c489d4c6
1 changed files with 2 additions and 1 deletions
|
@ -148,6 +148,7 @@ FocusScope {
|
||||||
function previousItem() { listView.currentIndex = (listView.currentIndex + listView.count - 1) % listView.count; }
|
function previousItem() { listView.currentIndex = (listView.currentIndex + listView.count - 1) % listView.count; }
|
||||||
function nextItem() { listView.currentIndex = (listView.currentIndex + listView.count + 1) % listView.count; }
|
function nextItem() { listView.currentIndex = (listView.currentIndex + listView.count + 1) % listView.count; }
|
||||||
function selectCurrentItem() { root.currentIndex = listView.currentIndex; hideList(); }
|
function selectCurrentItem() { root.currentIndex = listView.currentIndex; hideList(); }
|
||||||
|
function selectSpecificItem(index) { root.currentIndex = index; hideList(); }
|
||||||
|
|
||||||
Keys.onUpPressed: previousItem();
|
Keys.onUpPressed: previousItem();
|
||||||
Keys.onDownPressed: nextItem();
|
Keys.onDownPressed: nextItem();
|
||||||
|
@ -182,7 +183,7 @@ FocusScope {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onEntered: listView.currentIndex = index;
|
onEntered: listView.currentIndex = index;
|
||||||
onClicked: popup.selectCurrentItem()
|
onClicked: popup.selectSpecificItem(index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue