mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
fixed shutdown issues, added shutdown event for download notification
This commit is contained in:
@@ -48,8 +48,8 @@ def dlprogress():
|
||||
except:
|
||||
return 0
|
||||
|
||||
def send_notification():
|
||||
while True:
|
||||
def send_notification(shutdown_event):
|
||||
while not shutdown_event.is_set():
|
||||
try:
|
||||
for download in state.aria2.get_downloads():
|
||||
if dlprogress() == 100:
|
||||
|
||||
Reference in New Issue
Block a user