Skip to content

Commit

Permalink
Hide retry buttons on unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Oct 27, 2024
1 parent 7230a5c commit 54f5d82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/onthespot/gui/mainui.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ def update_item_in_download_list(self, item, status, progress):
with download_queue_lock:
item['gui']['status_label'].setText(status)
item['gui']['progress_bar'].setValue(progress)
if item['item_status'] == 'Unavailable':
item['gui']["btn"]['cancel'].hide()
if config.get("download_copy_btn"):
item['gui']['btn']['copy'].show()
item['gui']["btn"]['retry'].hide()
return
if progress == 0:
item['gui']["btn"]['cancel'].hide()
if config.get("download_copy_btn"):
Expand Down

0 comments on commit 54f5d82

Please sign in to comment.