Skip to content

Commit

Permalink
Reset progress-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
JargeZ committed Aug 13, 2021
1 parent 48f5919 commit 62300c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/NtscApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ def setup_renderer(self):
self.videoRenderer.increment_progress.connect(self.increment_progress)
# подключим сигнал старта потока к методу run у объекта, который должен выполнять код в другом потоке
self.thread.started.connect(self.videoRenderer.run)
self.progressBar.setValue(0)

@QtCore.pyqtSlot()
def stop_render(self):
Expand Down Expand Up @@ -515,6 +514,7 @@ def render_video(self):
}
self.setup_renderer()
self.toggle_main_effect()
self.progressBar.setValue(1)
self.videoRenderer.render_data = render_data
self.thread.start()

Expand Down

0 comments on commit 62300c6

Please sign in to comment.