From 32055050eec5d69b331a10c0be3c3b4f8c2de1e1 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sun, 5 Nov 2017 12:13:28 +0300 Subject: [PATCH] hide tray icon on exit --- setup.py | 1 + toxygen/bootstrap.py | 1 - toxygen/list_items.py | 4 ---- toxygen/main.py | 3 ++- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index adcd58c..bc06944 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,7 @@ class InstallScript(install): except: pass + setup(name='Toxygen', version=version, description='Toxygen - Tox client', diff --git a/toxygen/bootstrap.py b/toxygen/bootstrap.py index d6473ee..b80fdb8 100644 --- a/toxygen/bootstrap.py +++ b/toxygen/bootstrap.py @@ -81,4 +81,3 @@ def node_generator(): arr = sorted(nodes, key=lambda x: x.rand)[:4] for elem in arr: yield elem.get_data() - diff --git a/toxygen/list_items.py b/toxygen/list_items.py index 8e58c59..9b92f2a 100644 --- a/toxygen/list_items.py +++ b/toxygen/list_items.py @@ -543,7 +543,3 @@ class InlineImageItem(QtWidgets.QScrollArea): def mark_as_sent(self): return False - - - - diff --git a/toxygen/main.py b/toxygen/main.py index c3a2e40..cfc137d 100644 --- a/toxygen/main.py +++ b/toxygen/main.py @@ -7,7 +7,7 @@ from bootstrap import node_generator from mainscreen import MainWindow from callbacks import init_callbacks, stop, start from util import curr_directory, program_version, remove -import styles.style +import styles.style # reqired for styles loading import platform import toxes from passwordscreen import PasswordScreen, UnlockAppScreen, SetProfilePasswordScreen @@ -327,6 +327,7 @@ class Toxygen: self.mainloop.wait() self.init.wait() self.avloop.wait() + self.tray.hide() data = self.tox.get_savedata() ProfileHelper.get_instance().save_profile(data) settings.close()