summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-12-06 12:36:35 +0100
committerPapoteur <papoteur@mageia.org>2023-12-06 12:36:35 +0100
commit89c0724baaa2a35919fcaa1d0635041fc31b2bbc (patch)
tree8daba7d05dea1d954b4df103e7337d9ed9e9a354
parent89cee0730275748ad19b5203b35f8d0a58dec4e3 (diff)
downloadmga-advisor-89c0724baaa2a35919fcaa1d0635041fc31b2bbc.tar
mga-advisor-89c0724baaa2a35919fcaa1d0635041fc31b2bbc.tar.gz
mga-advisor-89c0724baaa2a35919fcaa1d0635041fc31b2bbc.tar.bz2
mga-advisor-89c0724baaa2a35919fcaa1d0635041fc31b2bbc.tar.xz
mga-advisor-89c0724baaa2a35919fcaa1d0635041fc31b2bbc.zip
Improve refreshing after clearing fields
-rw-r--r--mga-advisor.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mga-advisor.py b/mga-advisor.py
index 319e644..c3351a8 100644
--- a/mga-advisor.py
+++ b/mga-advisor.py
@@ -105,7 +105,7 @@ class Widget(QWidget):
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
self.clean()
self.ui.status.setText("Loading...")
- self.repaint()
+ self.ui.status.repaint()
url = os.path.join(BASE_URL, self.ui.bug_le.text()) + "?include_fields=cf_rpmpkg,cf_cve,url,component"
headers = {'Accept': 'application/json'}
r = requests.get(url, headers=headers)
@@ -164,6 +164,11 @@ class Widget(QWidget):
self.ui.subject_le.setText("")
self.ui.list_cve.clear()
self.ui.description_te.clear()
+ self.ui.list_ref.repaint()
+ self.ui.list_src.repaint()
+ self.ui.subject_le.repaint()
+ self.ui.list_cve.repaint()
+ self.ui.description_te.repaint()
def add_src(self):
dl = SrcDialog()