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

Suppress already_running_popup() if we have args.edmc

This commit is contained in:
Athanasius 2021-03-08 15:26:48 +00:00
parent 6ba01c7bc2
commit d6e7cbce16

View File

@ -199,7 +199,8 @@ if __name__ == '__main__': # noqa: C901
logger.info("An EDMarketConnector.exe process was already running, exiting.")
# To be sure the user knows, we need a popup
already_running_popup()
if not args.edmc:
already_running_popup()
# If the user closes the popup with the 'X', not the 'OK' button we'll
# reach here.
sys.exit(0)