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

View file

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