From c61e20cbd9c0f960434edac9b8c5fc88bb7a2bb1 Mon Sep 17 00:00:00 2001 From: tisfeng Date: Tue, 19 Dec 2023 23:23:21 +0800 Subject: [PATCH] perf: stop monitoring event tap after hiding query icon --- Easydict/Feature/EventMonitor/EZEventMonitor.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Easydict/Feature/EventMonitor/EZEventMonitor.m b/Easydict/Feature/EventMonitor/EZEventMonitor.m index e82fc80f4..1734fa0a4 100644 --- a/Easydict/Feature/EventMonitor/EZEventMonitor.m +++ b/Easydict/Feature/EventMonitor/EZEventMonitor.m @@ -952,6 +952,8 @@ - (void)dismissPopButton { self.dismissPopButtonBlock(); } self.isPopButtonVisible = NO; + + [self stopCGEventTap]; }