From 49bf5d98ff3abf078d8804e7ac7b8ee6668f29ec Mon Sep 17 00:00:00 2001 From: Mitternacht822 Date: Fri, 6 Jun 2025 20:28:21 +0400 Subject: [PATCH 1/2] 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 } } } From 1426d60e78ef32d782e85a4d132471acbf642e91 Mon Sep 17 00:00:00 2001 From: Mitternacht822 Date: Fri, 6 Jun 2025 20:41:42 +0400 Subject: [PATCH 2/2] cleaned unnecesarry lines --- client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml b/client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml index 0a6f0682..1f1de70e 100644 --- a/client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml +++ b/client/ui/qml/Pages2/PageProtocolShadowSocksSettings.qml @@ -140,8 +140,6 @@ 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) { cipherListView.selectedIndex = i }