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
This commit is contained in:
Kostas Karmas 2020-06-09 17:24:36 +02:00
parent f26445a914
commit 1c9ce25614

View File

@ -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(["<li>{} ({})</li>".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(