Skip to content

Commit

Permalink
Deactivate showing a percentage in progress bar. Ref #3543
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Nov 22, 2023
1 parent 8aaa58d commit c686946
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gns3/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ def _updateProgress(self, bytes_sent: int, bytes_total: int) -> None:
"""

if bytes_total > 0:
if not self._progress.maximum():
self._progress.setMaximum(100)
self._progress.setValue(int(100 * bytes_sent / bytes_total))
pass
# FIXME the code below makes the progress bar to be stuck sometimes
# if not self._progress.maximum():
# self._progress.setMaximum(100)
# self._progress.setValue(int(100 * bytes_sent / bytes_total))

def waitForReply(self, reply: QtNetwork.QNetworkReply, uploading: bool = False, timeout=60) -> None:
"""
Expand Down

0 comments on commit c686946

Please sign in to comment.