From 8c4ac1463ac023718e9cc8ac8ed3a7663ad41cae Mon Sep 17 00:00:00 2001 From: Phillip Song <103433299+phlpsong@users.noreply.github.com> Date: Mon, 6 May 2024 20:04:38 +0800 Subject: [PATCH] Service enable not work well issue (#537) * fix: service toggle enable not work well issue * Revert "fix: service toggle enable not work well issue" This reverts commit afab769346f9bf003f66916d349a11ad2e4ab6ec. * fix: do not set service enable to false even if query text type is none --------- Co-authored-by: Tisfeng --- Easydict/objc/Service/Model/EZQueryService.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Easydict/objc/Service/Model/EZQueryService.m b/Easydict/objc/Service/Model/EZQueryService.m index e3d948f8f..8201e1f05 100644 --- a/Easydict/objc/Service/Model/EZQueryService.m +++ b/Easydict/objc/Service/Model/EZQueryService.m @@ -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;