hide tray icon on exit
This commit is contained in:
parent
a6633f1e77
commit
32055050ee
4 changed files with 3 additions and 6 deletions
1
setup.py
1
setup.py
|
@ -48,6 +48,7 @@ class InstallScript(install):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
setup(name='Toxygen',
|
setup(name='Toxygen',
|
||||||
version=version,
|
version=version,
|
||||||
description='Toxygen - Tox client',
|
description='Toxygen - Tox client',
|
||||||
|
|
|
@ -81,4 +81,3 @@ def node_generator():
|
||||||
arr = sorted(nodes, key=lambda x: x.rand)[:4]
|
arr = sorted(nodes, key=lambda x: x.rand)[:4]
|
||||||
for elem in arr:
|
for elem in arr:
|
||||||
yield elem.get_data()
|
yield elem.get_data()
|
||||||
|
|
||||||
|
|
|
@ -543,7 +543,3 @@ class InlineImageItem(QtWidgets.QScrollArea):
|
||||||
|
|
||||||
def mark_as_sent(self):
|
def mark_as_sent(self):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ from bootstrap import node_generator
|
||||||
from mainscreen import MainWindow
|
from mainscreen import MainWindow
|
||||||
from callbacks import init_callbacks, stop, start
|
from callbacks import init_callbacks, stop, start
|
||||||
from util import curr_directory, program_version, remove
|
from util import curr_directory, program_version, remove
|
||||||
import styles.style
|
import styles.style # reqired for styles loading
|
||||||
import platform
|
import platform
|
||||||
import toxes
|
import toxes
|
||||||
from passwordscreen import PasswordScreen, UnlockAppScreen, SetProfilePasswordScreen
|
from passwordscreen import PasswordScreen, UnlockAppScreen, SetProfilePasswordScreen
|
||||||
|
@ -327,6 +327,7 @@ class Toxygen:
|
||||||
self.mainloop.wait()
|
self.mainloop.wait()
|
||||||
self.init.wait()
|
self.init.wait()
|
||||||
self.avloop.wait()
|
self.avloop.wait()
|
||||||
|
self.tray.hide()
|
||||||
data = self.tox.get_savedata()
|
data = self.tox.get_savedata()
|
||||||
ProfileHelper.get_instance().save_profile(data)
|
ProfileHelper.get_instance().save_profile(data)
|
||||||
settings.close()
|
settings.close()
|
||||||
|
|
Loading…
Reference in a new issue