From 119d8b90fb2d29b9b669349cc67b2783576be88b Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Tue, 28 Nov 2023 03:25:13 +0530 Subject: [PATCH] Bugfix: plugin not updating prescription --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 4ff2f87..ccdae48 100644 --- a/plugin.py +++ b/plugin.py @@ -112,10 +112,10 @@ class Plugin(QObject): try: if(hasattr(module, "web") and callable(module.web)): self.webapp=WebApp() + self.webapp.done.connect(lambda: prescription.set_data_from_copy(prescription_copy)) self.webapp.done.connect(lambda: self.update.emit()) prescription_copy=copy.deepcopy(prescription) url, data=module.web(prescription_copy) - prescription.set_data_from_copy(prescription_copy) self.webapp.load(module, QUrl(url), prescription_copy, data) self.webapp.show() elif(hasattr(module, "run") and callable(module.run)): -- 2.39.5