Skip to content

Commit

Permalink
Stdm syria (#482)
Browse files Browse the repository at this point in the history
* altered value-list.py to change value maximaximum to 100, code maximum to 10

* Delete Country ComboBox, Debug Logging CheckBox, and Select Custom Tables for Source Tables List in Export UI

* Removed Source Code Edit Comments fixes #471

* Changed Height fixes #468

* Documents-Uploader fixes #468 fixes #473 fixes #474

* UI enhancements fixes #477

* UI enhancements - cleaning document_uploader units

* Document Uploader Feature - Apply PEP8(Python Enhancement Proposals)

* Document Uploader Feature - Apply PEP8(Python Enhancement Proposals)

* Replaced requests lib by QtNetworkRequest (replaceed the function kobo_download within support_doc_manager. Later will be added as class)

* Added exception handlers for library calls without control over

* Added exception handlers for library calls without control over

* Used QgsNetworkAccessManager instead of the QNetworkAccessManager & QEventLoop instead of While loop

* Update document-uploader icon

* Fixing Bug - temp code -> while loop with timeout & sec counter fixed #480

* Bug-Download not responding fixes #480

* Disable Start Download button fixes #481

Co-authored-by: pgathogo <pgathogo@gmail.com>
  • Loading branch information
strabzounly and pgathogo authored Jul 12, 2022
1 parent e1e462d commit a1a60f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/support_doc_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def confirm_close(self, msg):
return True if ret_val == QMessageBox.Yes else False

def doc_download_started(self, msg):
self.btnDownload.setEnabled(False)
self.edtProgress.append(msg+" started...")
QApplication.processEvents()

Expand Down Expand Up @@ -109,6 +110,7 @@ def doc_upload_completed(self, msg):
self.edtProgress.append(msg+" completed.")
self.download_thread.quit()
self.finished_upload = True
self.btnDownload.setEnabled(True)

def download_thread_started(self):
self.sdoc_manager.start_download()
Expand Down

0 comments on commit a1a60f6

Please sign in to comment.