1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

Minor optimzation.

This commit is contained in:
Jonathan Harris 2015-11-19 00:54:04 +00:00
parent 62c85d5417
commit 02772872fd

View File

@ -118,8 +118,8 @@ if platform == 'darwin':
if config.getint('hotkey_always'):
self.activated = True
else: # Only trigger if game client is front process
active = [x for x in NSWorkspace.sharedWorkspace().runningApplications() if x.isActive()]
if active and active[0] and active[0].bundleIdentifier() == 'uk.co.frontier.EliteDangerous':
front = NSWorkspace.sharedWorkspace().frontmostApplication()
if front and front.bundleIdentifier() == 'uk.co.frontier.EliteDangerous':
self.activated = True
def acquire_start(self):