mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-02 02:38:30 +02:00
fixed progressbar not stopping correctly after being set to determinate
This commit is contained in:
parent
0864ff1e05
commit
69ce637a9c
1 changed files with 2 additions and 1 deletions
|
@ -465,9 +465,10 @@ class ProgressBar(ttk.LabelFrame):
|
|||
:param value: the value
|
||||
:return:
|
||||
"""
|
||||
|
||||
if value:
|
||||
if self.progress_bar_step["mode"] == "indeterminate": self.progress_bar_step.stop()
|
||||
self.progress_bar_step.configure(mode="determinate")
|
||||
self.progress_bar_step.stop()
|
||||
|
||||
else:
|
||||
self.progress_bar_step.configure(mode="indeterminate", maximum=100)
|
||||
|
|
Loading…
Reference in a new issue