When creating a new routing rule, add it to the top

This commit is contained in:
2dust
2024-11-21 20:24:01 +08:00
parent 3e09adc4d1
commit 2dc0472c69

View File

@@ -95,7 +95,7 @@ object SettingsManager {
if (rulesetList.isNullOrEmpty()) return
if (index < 0 || index >= rulesetList.count()) {
rulesetList.add(ruleset)
rulesetList.add(0, ruleset)
} else {
rulesetList[index] = ruleset
}