hide tray icon on exit

This commit is contained in:
ingvar1995 2017-11-05 12:13:28 +03:00
parent a6633f1e77
commit 32055050ee
4 changed files with 3 additions and 6 deletions

View File

@ -48,6 +48,7 @@ class InstallScript(install):
except:
pass
setup(name='Toxygen',
version=version,
description='Toxygen - Tox client',

View File

@ -81,4 +81,3 @@ def node_generator():
arr = sorted(nodes, key=lambda x: x.rand)[:4]
for elem in arr:
yield elem.get_data()

View File

@ -543,7 +543,3 @@ class InlineImageItem(QtWidgets.QScrollArea):
def mark_as_sent(self):
return False

View File

@ -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()