mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:49:04 +08:00
Show that a value is being calculated instead of showing "QVariant..."
CURA-1668
This commit is contained in:
parent
7d2a7bd157
commit
2287c2daa6
@ -5,6 +5,7 @@ from PyQt5.QtCore import pyqtProperty, Qt, pyqtSignal, pyqtSlot, QUrl
|
||||
|
||||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
from UM.Settings.InstanceContainer import InstanceContainer
|
||||
from UM.Settings.SettingFunction import SettingFunction
|
||||
|
||||
class ContainerSettingsModel(ListModel):
|
||||
LabelRole = Qt.UserRole + 1
|
||||
@ -53,7 +54,11 @@ class ContainerSettingsModel(ListModel):
|
||||
while category.type != "category":
|
||||
category = category.parent
|
||||
|
||||
values.append(container.getProperty(key, "value"))
|
||||
value = container.getProperty(key, "value")
|
||||
if type(value) == SettingFunction:
|
||||
values.append("=\u0192")
|
||||
else:
|
||||
values.append(container.getProperty(key, "value"))
|
||||
else:
|
||||
values.append("")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user