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

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