mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +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'):
|
if config.getint('hotkey_always'):
|
||||||
self.activated = True
|
self.activated = True
|
||||||
else: # Only trigger if game client is front process
|
else: # Only trigger if game client is front process
|
||||||
active = [x for x in NSWorkspace.sharedWorkspace().runningApplications() if x.isActive()]
|
front = NSWorkspace.sharedWorkspace().frontmostApplication()
|
||||||
if active and active[0] and active[0].bundleIdentifier() == 'uk.co.frontier.EliteDangerous':
|
if front and front.bundleIdentifier() == 'uk.co.frontier.EliteDangerous':
|
||||||
self.activated = True
|
self.activated = True
|
||||||
|
|
||||||
def acquire_start(self):
|
def acquire_start(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user