Don't mess with console visibility on Windows

This commit is contained in:
shortcutme 2019-10-06 03:07:52 +02:00
parent 284b1a4f8a
commit 1b41aa70cc
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 7 deletions

View File

@ -32,16 +32,10 @@ class ActionsPlugin(object):
)
self.icon = icon
if not config.debug: # Hide console if not in debug mode
notificationicon.hideConsole()
self.console = False
else:
self.console = True
self.console = False
@atexit.register
def hideIcon():
if not config.debug:
notificationicon.showConsole()
icon.die()
ui_ip = config.ui_ip if config.ui_ip != "*" else "127.0.0.1"