From 3b295785241c0a0a5ce56d39852d4162c2530965 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Thu, 31 Jan 2019 17:04:34 +0530 Subject: Configure timers to fire even when tracking mouse events Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/macOS/StatusItemController.swift | 2 +- .../UI/macOS/ViewController/TunnelDetailTableViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'WireGuard/WireGuard/UI') diff --git a/WireGuard/WireGuard/UI/macOS/StatusItemController.swift b/WireGuard/WireGuard/UI/macOS/StatusItemController.swift index 2568c15..e401925 100644 --- a/WireGuard/WireGuard/UI/macOS/StatusItemController.swift +++ b/WireGuard/WireGuard/UI/macOS/StatusItemController.swift @@ -53,7 +53,7 @@ class StatusItemController { self.statusItem.button?.image = self.animationImages[self.animationImageIndex] self.animationImageIndex = (self.animationImageIndex + 1) % self.animationImages.count } - RunLoop.main.add(timer, forMode: .default) + RunLoop.main.add(timer, forMode: .common) animationTimer = timer } diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift index 489e868..c9cb09a 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift @@ -254,7 +254,7 @@ class TunnelDetailTableViewController: NSViewController { self?.reloadRuntimeConfiguration() } reloadRuntimeConfigurationTimer = reloadTimer - RunLoop.main.add(reloadTimer, forMode: .default) + RunLoop.main.add(reloadTimer, forMode: .common) } func stopUpdatingRuntimeConfiguration() { -- cgit v1.2.3-59-g8ed1b