Skip to content

Commit

Permalink
When creating a new routing rule, add it to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Nov 21, 2024
1 parent 3e09adc commit 2dc0472
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2dc0472

Please sign in to comment.