mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Fix printer counts for the auto-added printer message
CURA-7546
This commit is contained in:
parent
e8f0d41d29
commit
49f83cbdb5
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue