mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 08:17:13 +03:00
Minor optimzation.
This commit is contained in:
parent
62c85d5417
commit
02772872fd
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user