mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
move download var
This commit is contained in:
+2
-1
@@ -10,7 +10,7 @@ aria2 = aria2p.API(
|
||||
secret=""
|
||||
)
|
||||
)
|
||||
download_paused = False
|
||||
|
||||
def pauseDownload(_):
|
||||
global download_paused
|
||||
if download_paused == True:
|
||||
@@ -29,6 +29,7 @@ def startDownload(_):
|
||||
else:
|
||||
print("Download Started!")
|
||||
download = aria2.add_magnet(magnet_uri)
|
||||
download_paused = False
|
||||
|
||||
|
||||
downloads_dir = os.path.join(os.path.expanduser("~"), "Downloads")
|
||||
|
||||
Reference in New Issue
Block a user