From 1c9ce25614a3b9c90b5d160f67ce4fec0b3ba824 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Tue, 9 Jun 2020 17:24:36 +0200 Subject: [PATCH] Change lifetime of the removed_printers_message to 30 seconds After 30 seconds a new sync will be initiated, which will alter the conents of self.reported_device_ids, thus making the current message deprecated. Therefore, it is best to have a maximum lifetime of 30 seconds. CURA-7454 --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index a537f5aa24..35865c11ad 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -273,7 +273,7 @@ class CloudOutputDeviceManager: "Cloud connection is not available for some printers", len(self.reported_device_ids) ), - lifetime = 0 + lifetime = 30 ) device_names = "\n".join(["
  • {} ({})
  • ".format(self._um_cloud_printers[device].name, self._um_cloud_printers[device].definition.name) for device in self.reported_device_ids]) message_text = self.I18N_CATALOG.i18ncp(