From 772094eacdfa3776743bfe42f0055e5e84ed87b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tri=E1=BB=87u=20Kha?= Date: Thu, 12 Mar 2026 00:46:44 +0700 Subject: [PATCH] feat(dropdown): have selected item at dropdown beginning on launch (#1968) * fix(appdrawer): launcher launched via appdrawer doesnt respect size setting * feat(dropdown): have selected item at dropdown beginning on launch --- quickshell/Widgets/DankDropdown.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickshell/Widgets/DankDropdown.qml b/quickshell/Widgets/DankDropdown.qml index bd342b84..5dd76671 100644 --- a/quickshell/Widgets/DankDropdown.qml +++ b/quickshell/Widgets/DankDropdown.qml @@ -121,7 +121,12 @@ Item { dropdownMenu.close(); return; } + dropdownMenu.open(); + + let currentIndex = root.options.indexOf(root.currentValue); + listView.positionViewAtIndex(currentIndex, ListView.Beginning); + const pos = dropdown.mapToItem(Overlay.overlay, 0, 0); const popupW = dropdownMenu.width; const popupH = dropdownMenu.height;