Skip to content

Commit

Permalink
Service enable not work well issue (#537)
Browse files Browse the repository at this point in the history
* fix: service toggle enable not work well issue

* Revert "fix: service toggle enable not work well issue"

This reverts commit afab769.

* fix: do not set service enable to false even if query text type is none

---------

Co-authored-by: Tisfeng <[email protected]>
  • Loading branch information
phlpsong and tisfeng authored May 6, 2024
1 parent 26971e0 commit 8c4ac14
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Easydict/objc/Service/Model/EZQueryService.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ - (BOOL)enabledAutoQuery {
return YES;
}

- (BOOL)enabled {
if (self.queryTextType == EZQueryTextTypeNone) {
return NO;
}

return _enabled;
}

// TODO: need to optimize, each service should have its own model, can stop requests individually.
- (void)setResult:(EZQueryResult *)translateResult {
_result = translateResult;
Expand Down

0 comments on commit 8c4ac14

Please sign in to comment.