From 9d05d6335522b437d73896629c049952a72a5000 Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Sun, 24 Dec 2023 08:35:58 -0600 Subject: [PATCH] almost --- systray-updater | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/systray-updater b/systray-updater index 5abc916..93e8ea6 100755 --- a/systray-updater +++ b/systray-updater @@ -73,11 +73,11 @@ def count(): tray.setToolTip(avail) tray.setVisible(True) except subprocess.CalledProcessError: - tray.setVisible(False) - wait = 1800000 - updateTimer.killTimer - updateTimer.start(wait) - print("Error: \'checkupdates\' command unable to retrieve updates\nSetting timer to 30mins\n") + tray.setVisible(False) + wait = 1800000 + updateTimer.killTimer + updateTimer.start(wait) + print("Error: \'checkupdates\' command unable to retrieve updates\nSetting timer to 30mins\n") # Read the News def news(): @@ -94,7 +94,7 @@ def infos(pkgString): def update(): cmd = [ term, opt, 'sudo', 'pacman', '-Syu' ] subprocess.Popen(cmd) - count() + updateTimer.singleShot(1,count) # Create an app surface app = QApplication([])