Fixed for progress bar

This commit is contained in:
Dimitris Zlatanidis 2024-04-19 18:53:40 +03:00
parent 1b1b34005a
commit c3d034b00b
3 changed files with 6 additions and 6 deletions

View file

@ -228,7 +228,7 @@ class Packages(Configs):
self.done_process()
def bar_progress(self) -> None:
if self.option_for_progress_bar:
if self.progress_bar or self.option_for_progress_bar:
message: str = 'Resolving dependencies'
self.bar_process = Process(target=self.progress.progress_bar, args=(message,))
self.bar_process.start()
@ -236,7 +236,7 @@ class Packages(Configs):
print('\rResolving dependencies... ', end='')
def done_process(self) -> None:
if self.option_for_progress_bar:
if self.progress_bar or self.option_for_progress_bar:
time.sleep(0.1)
self.bar_process.terminate()
self.bar_process.join()

View file

@ -115,7 +115,7 @@ class LoadData(Configs):
return data
def bar_progress(self) -> None:
if self.option_for_progress_bar:
if self.progress_bar or self.option_for_progress_bar:
message: str = 'Database loading'
self.bar_process = Process(target=self.progress.progress_bar, args=(message,))
self.bar_process.start()
@ -123,7 +123,7 @@ class LoadData(Configs):
print('\rDatabase loading... ', end='')
def done_process(self) -> None:
if self.option_for_progress_bar:
if self.progress_bar or self.option_for_progress_bar:
time.sleep(0.1)
self.bar_process.terminate()
self.bar_process.join()

View file

@ -300,7 +300,7 @@ class Slackbuilds(Configs):
self.done_process()
def bar_progress(self) -> None:
if self.option_for_progress_bar:
if self.progress_bar or self.option_for_progress_bar:
message: str = 'Resolving dependencies'
self.bar_process = Process(target=self.progress.progress_bar, args=(message,))
self.bar_process.start()
@ -308,7 +308,7 @@ class Slackbuilds(Configs):
print('\rResolving dependencies... ', end='')
def done_process(self) -> None:
if self.option_for_progress_bar:
if self.progress_bar or self.option_for_progress_bar:
time.sleep(0.1)
self.bar_process.terminate()
self.bar_process.join()