1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-05 07:50:23 +08:00

fix both progress bars

This commit is contained in:
Escartem
2024-07-24 09:55:01 +02:00
parent 1f0c7d90db
commit dd78319589
2 changed files with 23 additions and 10 deletions

5
app.py
View File

@@ -2,6 +2,7 @@ import os
import sys
import json
import time
import math
import mapper
import extract
from PyQt5 import uic
@@ -118,9 +119,9 @@ class AnimeWwise(QMainWindow):
@pyqtSlot(list)
def progressBarSlot(self, progress):
if progress[0] == "total":
self.totalProgress.setValue(progress[1])
self.totalProgress.setValue(math.ceil(progress[1]))
elif progress[0] == "file":
self.fileProgress.setValue(progress[1])
self.fileProgress.setValue(math.ceil(progress[1]))
@pyqtSlot(dict)
def handleFinished(self, data):