From 89c0724baaa2a35919fcaa1d0635041fc31b2bbc Mon Sep 17 00:00:00 2001 From: Papoteur Date: Wed, 6 Dec 2023 12:36:35 +0100 Subject: Improve refreshing after clearing fields --- mga-advisor.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() -- cgit v1.2.1