From 49bf5d98ff3abf078d8804e7ac7b8ee6668f29ec Mon Sep 17 00:00:00 2001 From: Mitternacht822 Date: Fri, 6 Jun 2025 20:28:21 +0400 Subject: [PATCH] fixed bug when current cipher was not displaying correctly in dropdown menu --- client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml b/client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml index 63e60dcb..0a6f0682 100644 --- a/client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml +++ b/client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml @@ -140,8 +140,10 @@ PageType { cipherDropDown.text = cipher for (var i = 0; i < cipherListView.model.count; i++) { + const element = cipherListView.model.get(i) + if (cipherListView.model.get(i).name === cipherDropDown.text) { - currentIndex = i + cipherListView.selectedIndex = i } } }