diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2020-07-02 17:23:46 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2020-07-02 17:23:46 +0300 |
commit | 49f83cbdb5fdc65a511bc9012cf67ae5291fce79 (patch) | |
tree | 98cda941a07f7690913ec68d96726747dabbf2c0 /plugins | |
parent | e8f0d41d29ceaa43645e25c1752d5505e98d3b4e (diff) |
Fix printer counts for the auto-added printer message
CURA-7546
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 322919124f..92b17437a5 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -253,8 +253,8 @@ class CloudOutputDeviceManager: max_disp_devices = 3 if len(new_devices) > max_disp_devices: - num_hidden = len(new_devices) - max_disp_devices + 1 - device_name_list = ["<li>{} ({})</li>".format(device.name, device.printerTypeName) for device in new_devices[0:num_hidden]] + num_hidden = len(new_devices) - max_disp_devices + device_name_list = ["<li>{} ({})</li>".format(device.name, device.printerTypeName) for device in new_devices[0:max_disp_devices]] device_name_list.append(self.I18N_CATALOG.i18nc("info:hidden list items", "<li>... and {} others</li>", num_hidden)) device_names = "".join(device_name_list) else: |