Skip to content

Commit

Permalink
修复请求重写启用状态
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghongenpin committed Sep 22, 2023
1 parent a6cab55 commit fbf6e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ui/desktop/toolbar/setting/request_rewrite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ class _RuleAddDialogState extends State<RuleAddDialog> {
(formKey.currentState as FormState).save();

rule.updatePathReg();
rule.enabled = enableNotifier.value;
if (widget.currentIndex >= 0) {
RequestRewrites.instance.rules[widget.currentIndex] = rule;
} else {
Expand Down
1 change: 1 addition & 0 deletions lib/ui/mobile/setting/request_rewrite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class _RewriteRuleState extends State<RewriteRule> {
if ((formKey.currentState as FormState).validate()) {
(formKey.currentState as FormState).save();
rule.updatePathReg();
rule.enabled = enableNotifier.value;
if (widget.currentIndex >= 0) {
RequestRewrites.instance.rules[widget.currentIndex] = rule;
} else {
Expand Down

0 comments on commit fbf6e33

Please sign in to comment.