mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Remove some platform independent code for a while
This commit is contained in:
parent
fcb2ce119b
commit
c6865a7742
@ -225,7 +225,6 @@ class Controller(object):
|
|||||||
self.current_account = ""
|
self.current_account = ""
|
||||||
self.view.prepare()
|
self.view.prepare()
|
||||||
self.bind_other_events()
|
self.bind_other_events()
|
||||||
if system == "Windows":
|
|
||||||
self.set_systray_icon()
|
self.set_systray_icon()
|
||||||
|
|
||||||
def check_invisible_at_startup(self):
|
def check_invisible_at_startup(self):
|
||||||
@ -641,7 +640,6 @@ class Controller(object):
|
|||||||
sessions.sessions[item].sound.cleaner.cancel()
|
sessions.sessions[item].sound.cleaner.cancel()
|
||||||
log.debug("Saving database for " + sessions.sessions[item].session_id)
|
log.debug("Saving database for " + sessions.sessions[item].session_id)
|
||||||
sessions.sessions[item].save_persistent_data()
|
sessions.sessions[item].save_persistent_data()
|
||||||
if system == "Windows":
|
|
||||||
self.systrayIcon.RemoveIcon()
|
self.systrayIcon.RemoveIcon()
|
||||||
pidpath = os.path.join(os.getenv("temp"), "{}.pid".format(application.name))
|
pidpath = os.path.join(os.getenv("temp"), "{}.pid".format(application.name))
|
||||||
if os.path.exists(pidpath):
|
if os.path.exists(pidpath):
|
||||||
|
Loading…
Reference in New Issue
Block a user