This commit is contained in:
Eric Lay 2023-12-24 08:35:58 -06:00
parent bacde53401
commit 9d05d63355
1 changed files with 6 additions and 6 deletions

View File

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