Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v2.5.3
release_name: v2.5.3
tag_name: v2.5.4
release_name: v2.5.4
body: |
A little more cleanup.
Stop downloads and reset progress bar when the clear list button is pressed.
draft: false
prerelease: false

Expand Down
13 changes: 13 additions & 0 deletions PySN.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,19 @@ def button_downall(self):

#Behavior for the Clear button. Clears the list.
def button_clear(self):
for q in self.textbox.queue_list:
try:
q.put(ButtonAction.STOP)
except Exception:
pass

time.sleep(0.1)

self.total_download_size = 0
self.completed_download_size = 0
self.after(0, lambda: self.total_prog_bar.set(0))
self.after(0, lambda: self.prog_status_label.configure(text='0/0 MB'))

self.textbox.destroy()
self.textbox = ScrollableLabelButtonFrame(master=self, command=self.frame_button_download, corner_radius=5)
self.textbox.grid(row=1, column=0, columnspan=5, padx=4, pady=(5,5), sticky='nsew')
Expand Down
Loading