From: Agnibho Mondal <mondal@agnibho.com> Date: Mon, 27 Nov 2023 21:55:13 +0000 (+0530) Subject: Bugfix: plugin not updating prescription X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=119d8b90fb2d29b9b669349cc67b2783576be88b;p=medscript.git Bugfix: plugin not updating prescription --- 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)):