Skip to content

Commit

Permalink
fix: audio and text copy button enable state
Browse files Browse the repository at this point in the history
  • Loading branch information
phlpsong committed Jan 2, 2024
1 parent b43f99b commit b48357b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Easydict/Feature/ViewController/View/QueryView/EZQueryView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit b48357b

Please sign in to comment.