From b48357b53e239dfeea79bcc18667a7f807ada268 Mon Sep 17 00:00:00 2001 From: phlpsong Date: Tue, 2 Jan 2024 20:24:50 +0800 Subject: [PATCH] fix: audio and text copy button enable state --- Easydict/Feature/ViewController/View/QueryView/EZQueryView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Easydict/Feature/ViewController/View/QueryView/EZQueryView.m b/Easydict/Feature/ViewController/View/QueryView/EZQueryView.m index 964cd6483..fd745ada8 100644 --- a/Easydict/Feature/ViewController/View/QueryView/EZQueryView.m +++ b/Easydict/Feature/ViewController/View/QueryView/EZQueryView.m @@ -516,7 +516,8 @@ - (void)updateButtonsDisplayState:(NSString *)text { if (self.clearButtonHidden && self.alertText.length) { [self.clearButton setAnimatedHidden:NO]; } - + [self.audioButton setEnabled:text.length > 0]; + [self.textCopyButton setEnabled:text.length > 0]; [self updateDetectButton]; }