This commit is contained in:
airclay 2021-09-04 21:30:58 -05:00
parent 605ac63691
commit 06160f0620
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ def count():
# Download pkg's to cache # Download pkg's to cache
def cacheUpdates(): def cacheUpdates():
cmd = ['checkupdates', '-d'] cmd = ['checkupdates', '-d']
subprocess.cmd(cmd) subprocess.run(cmd)
# Run system update # Run system update
def update(): def update():
@ -52,7 +52,7 @@ def newText():
count() count()
# Download pkg's to cache # Download pkg's to cache
if cache == True: if eval(cache) == True:
cacheUpdates() cacheUpdates()
app = QApplication([]) app = QApplication([])
@ -78,7 +78,7 @@ menu.addAction(option1)
timer = QTimer() timer = QTimer()
timer.timeout.connect(newText) timer.timeout.connect(newText)
# Download pkg's to cache on timeout # Download pkg's to cache on timeout
if cache == True: if eval(cache) == True:
timer.timeout.connect(cacheUpdates) timer.timeout.connect(cacheUpdates)
timer.start(wait) timer.start(wait)