Process events while rendering logs

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2023-11-05 16:41:01 +08:00
parent e2c087bdda
commit 406acc9517
+2
View File
@@ -286,6 +286,8 @@ class LogViewerWidget(MainWindow):
else:
textBrowser.append(line)
APP().processEvents()
if scrollEnds:
vScrollBar.setValue(vScrollBar.maximum()) # Scrolls to the bottom
hScrollBar.setValue(0) # scroll to the left