mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Fix toolbox not initializing due to enabledChanged signal
The Connections in qml is a QObject and it has an enabledChanged signal by default. Therefore, we cannot really use the Connections to connect to the enabledChanged signal of e.g. a python class, because qml complains that there is already a function named enabledChanged() in the Connections. To circumvent that, we can simply rename the enabledChanged() signal of the Toolbox to toolboxEnabledChanged().
This commit is contained in:
parent
7827b36ab7
commit
189d00c3ed
2 changed files with 5 additions and 5 deletions
|
@ -117,7 +117,7 @@ Item
|
|||
Connections
|
||||
{
|
||||
target: toolbox
|
||||
function onEnabledChanged() { isEnabled = toolbox.isEnabled(model.id) }
|
||||
function onToolboxEnabledChanged() { isEnabled = toolbox.isEnabled(model.id) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue