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.setToolTip(avail)
tray.setVisible(True) tray.setVisible(True)
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
tray.setVisible(False) tray.setVisible(False)
wait = 1800000 wait = 1800000
updateTimer.killTimer updateTimer.killTimer
updateTimer.start(wait) updateTimer.start(wait)
print("Error: \'checkupdates\' command unable to retrieve updates\nSetting timer to 30mins\n") print("Error: \'checkupdates\' command unable to retrieve updates\nSetting timer to 30mins\n")
# Read the News # Read the News
def news(): def news():
@ -94,7 +94,7 @@ def infos(pkgString):
def update(): def update():
cmd = [ term, opt, 'sudo', 'pacman', '-Syu' ] cmd = [ term, opt, 'sudo', 'pacman', '-Syu' ]
subprocess.Popen(cmd) subprocess.Popen(cmd)
count() updateTimer.singleShot(1,count)
# Create an app surface # Create an app surface
app = QApplication([]) app = QApplication([])