From cbe7756bb9cd43333c5ac3cf1fa6ac4802531d30 Mon Sep 17 00:00:00 2001 From: navjot Date: Fri, 25 Dec 2020 01:35:21 +0530 Subject: [PATCH] showing progress bar on click on quit button --- src/bitmessageqt/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 95432826..14229a93 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2610,8 +2610,8 @@ class MyForm(settingsmixin.SMainWindow): def processing(self): """Processing progress bar""" completed = 0 - - while completed < 100: + self.progress.show() + while completed < 80: completed += 0.1 self.progress.setValue(completed) @@ -2637,7 +2637,7 @@ class MyForm(settingsmixin.SMainWindow): if getPowType() == "python" and (powQueueSize() > 0 or pendingUpload() > 0): self.progress = QtGui.QProgressBar(self) self.progress.setGeometry(550, 555, 250, 20) - self.progress.show() + # self.progress.show() messagebox = QtGui.QMessageBox( QtGui.QMessageBox.Question, _translate("MainWindow", "Proof of work pending"), @@ -2670,7 +2670,7 @@ class MyForm(settingsmixin.SMainWindow): if pendingDownload() > 0: self.progress = QtGui.QProgressBar(self) self.progress.setGeometry(550, 555, 250, 20) - self.progress.show() + # self.progress.show() messagebox = QtGui.QMessageBox( QtGui.QMessageBox.Question, _translate("MainWindow", "Synchronisation pending"), @@ -2700,7 +2700,7 @@ class MyForm(settingsmixin.SMainWindow): 'bitmessagesettings', 'dontconnect'): self.progress = QtGui.QProgressBar(self) self.progress.setGeometry(550, 555, 250, 20) - self.progress.show() + # self.progress.show() messagebox = QtGui.QMessageBox( QtGui.QMessageBox.Question, _translate("MainWindow", "Not connected"),