mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NComboBox: fix warning
This commit is contained in:
@@ -17,6 +17,7 @@ RowLayout {
|
||||
property string placeholder: ""
|
||||
|
||||
readonly property real preferredHeight: Style.baseWidgetSize * 1.1 * Style.uiScaleRatio
|
||||
readonly property var comboBox: combo
|
||||
|
||||
signal selected(string key)
|
||||
|
||||
@@ -209,8 +210,8 @@ RowLayout {
|
||||
var item = root.getItem(delegateRect.index);
|
||||
if (item && item.key !== undefined) {
|
||||
root.selected(item.key);
|
||||
combo.currentIndex = delegateRect.index;
|
||||
combo.popup.close();
|
||||
root.comboBox.currentIndex = delegateRect.index;
|
||||
root.comboBox.popup.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user