mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
temporarily disable notifications because of bug
This commit is contained in:
@@ -50,15 +50,18 @@ def dlprogress():
|
|||||||
|
|
||||||
def send_notification():
|
def send_notification():
|
||||||
while True:
|
while True:
|
||||||
|
if state.aria2 is None:
|
||||||
|
time.sleep(1)
|
||||||
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
downloads = state.aria2.get_downloads()
|
for d in state.aria2.get_downloads():
|
||||||
if downloads:
|
if d.is_complete:
|
||||||
for download in downloads:
|
notification.notify(
|
||||||
if download.is_complete:
|
title="Download finished",
|
||||||
# notification.notify("Download Complete"
|
message=d.name,
|
||||||
print("yet")
|
timeout=4)
|
||||||
time.sleep(5)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if state.debug:
|
if state.debug:
|
||||||
print(f"Notification Error: {e}")
|
print("Notification thread error:", e)
|
||||||
break
|
time.sleep(5)
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ if __name__ == "__main__":
|
|||||||
if state.debug:
|
if state.debug:
|
||||||
print("Starting Aria2 Server")
|
print("Starting Aria2 Server")
|
||||||
state.aria2process = run_aria2server()
|
state.aria2process = run_aria2server()
|
||||||
run_thread(threading.Thread(target=send_notification))
|
|
||||||
signal.signal(signal.SIGINT, keyboardinterrupthandler)
|
signal.signal(signal.SIGINT, keyboardinterrupthandler)
|
||||||
atexit.register(kill_aria2server)
|
atexit.register(kill_aria2server)
|
||||||
|
# run_thread(threading.Thread(target=send_notification))
|
||||||
if state.debug:
|
if state.debug:
|
||||||
print("Launching GUI")
|
print("Launching GUI")
|
||||||
run_gui()
|
run_gui()
|
||||||
|
|||||||
Reference in New Issue
Block a user