Remove some platform independent code for a while

This commit is contained in:
Manuel Cortez 2022-02-24 16:26:05 -06:00
parent fcb2ce119b
commit c6865a7742
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -225,8 +225,7 @@ class Controller(object):
self.current_account = ""
self.view.prepare()
self.bind_other_events()
if system == "Windows":
self.set_systray_icon()
self.set_systray_icon()
def check_invisible_at_startup(self):
# Visibility check. It does only work for windows.
@ -641,11 +640,10 @@ class Controller(object):
sessions.sessions[item].sound.cleaner.cancel()
log.debug("Saving database for " + sessions.sessions[item].session_id)
sessions.sessions[item].save_persistent_data()
if system == "Windows":
self.systrayIcon.RemoveIcon()
pidpath = os.path.join(os.getenv("temp"), "{}.pid".format(application.name))
if os.path.exists(pidpath):
os.remove(pidpath)
self.systrayIcon.RemoveIcon()
pidpath = os.path.join(os.getenv("temp"), "{}.pid".format(application.name))
if os.path.exists(pidpath):
os.remove(pidpath)
if hasattr(self, "streams_checker_function"):
log.debug("Stopping stream checker...")
self.streams_checker_function.cancel()