mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-17 07:45:56 +08:00
Use bracket to initialise list
Co-authored-by: Joey de l'Arago <joeydelarago@gmail.com>
This commit is contained in:
parent
4fa024cd31
commit
a645fa7d96
@ -1634,7 +1634,7 @@ class MachineManager(QObject):
|
|||||||
@pyqtProperty("QList<QString>", notify = activeQualityDisplayNameChanged)
|
@pyqtProperty("QList<QString>", notify = activeQualityDisplayNameChanged)
|
||||||
def activeQualityDisplayNameStringParts(self) -> [str]:
|
def activeQualityDisplayNameStringParts(self) -> [str]:
|
||||||
result_map = self.activeQualityDisplayNameMap
|
result_map = self.activeQualityDisplayNameMap
|
||||||
string_parts = list()
|
string_parts = []
|
||||||
|
|
||||||
if result_map["custom_profile"] is not None:
|
if result_map["custom_profile"] is not None:
|
||||||
string_parts.append(result_map["custom_profile"])
|
string_parts.append(result_map["custom_profile"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user