Configure timers to fire even when tracking mouse events
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -388,7 +388,7 @@ class TunnelContainer: NSObject {
|
|||||||
self.refreshStatus()
|
self.refreshStatus()
|
||||||
}
|
}
|
||||||
self.activationTimer = activationTimer
|
self.activationTimer = activationTimer
|
||||||
RunLoop.main.add(activationTimer, forMode: .default)
|
RunLoop.main.add(activationTimer, forMode: .common)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -444,7 +444,7 @@ class TunnelContainer: NSObject {
|
|||||||
self.isActivateOnDemandEnabled = self.tunnelProvider.isOnDemandEnabled
|
self.isActivateOnDemandEnabled = self.tunnelProvider.isOnDemandEnabled
|
||||||
}
|
}
|
||||||
self.deactivationTimer = deactivationTimer
|
self.deactivationTimer = deactivationTimer
|
||||||
RunLoop.main.add(deactivationTimer, forMode: .default)
|
RunLoop.main.add(deactivationTimer, forMode: .common)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class StatusItemController {
|
|||||||
self.statusItem.button?.image = self.animationImages[self.animationImageIndex]
|
self.statusItem.button?.image = self.animationImages[self.animationImageIndex]
|
||||||
self.animationImageIndex = (self.animationImageIndex + 1) % self.animationImages.count
|
self.animationImageIndex = (self.animationImageIndex + 1) % self.animationImages.count
|
||||||
}
|
}
|
||||||
RunLoop.main.add(timer, forMode: .default)
|
RunLoop.main.add(timer, forMode: .common)
|
||||||
animationTimer = timer
|
animationTimer = timer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ class TunnelDetailTableViewController: NSViewController {
|
|||||||
self?.reloadRuntimeConfiguration()
|
self?.reloadRuntimeConfiguration()
|
||||||
}
|
}
|
||||||
reloadRuntimeConfigurationTimer = reloadTimer
|
reloadRuntimeConfigurationTimer = reloadTimer
|
||||||
RunLoop.main.add(reloadTimer, forMode: .default)
|
RunLoop.main.add(reloadTimer, forMode: .common)
|
||||||
}
|
}
|
||||||
|
|
||||||
func stopUpdatingRuntimeConfiguration() {
|
func stopUpdatingRuntimeConfiguration() {
|
||||||
|
|||||||
Reference in New Issue
Block a user