From 194dbc6f820ebb4294035b6861a840831213f6ee Mon Sep 17 00:00:00 2001 From: uqfldjpe <26778529+uqfldjpe@users.noreply.github.com> Date: Wed, 29 Nov 2017 22:12:55 +0900 Subject: [PATCH] fix a bug where the VirusTotal button was not properly disabled --- shared/DaemonComms.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/DaemonComms.m b/shared/DaemonComms.m index 25a432b..b4c64ad 100644 --- a/shared/DaemonComms.m +++ b/shared/DaemonComms.m @@ -70,11 +70,11 @@ -(void)getRules:(BOOL)wait4Change reply:(void (^)(NSDictionary*))reply; }] getRules:wait4Change reply:^(NSDictionary* rules) { //respond with rules - dispatch_async(dispatch_get_main_queue(), ^ + [[NSRunLoop mainRunLoop] performInModes:@[NSDefaultRunLoopMode, NSModalPanelRunLoopMode] block:^ { //respond reply(rules); - }); + }]; }]; return;