diff options
author | Ghostkeeper <rubend@tutanota.com> | 2022-06-14 16:59:54 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2022-06-14 17:00:14 +0300 |
commit | 83ea5c29442c2efc4e0a97e9fb4ef2e8a27b8bc4 (patch) | |
tree | 97a276a57b85ca86f9afe95830231a19555f9c77 /resources | |
parent | e095d41f0bde88194b91142fe60c4c2fbd5be173 (diff) |
Fix triggering first pulse
Before the first pulse, the _previousResolution property was still bound to the activeQualityType property of the MachineManager. When it then checks if it changed, it finds that it didn't change because it checks against that same property, but the _previousResolution automatically updated with it. After that it loses its binding because it's set in the function itself to a fixed value.
Instead, we'll now give it its initial value with the Component.onCompleted function so that it doesn't bind, and then doesn't change along with the first change.
Contributes to issue CURA-8849.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml index 62cdf94185..c69b4dbd13 100644 --- a/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml +++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml @@ -12,7 +12,8 @@ Item height: childrenRect.height property real labelColumnWidth: Math.round(width / 3) - property string _previousResolution: Cura.MachineManager.activeQualityType //Internal variable to detect changes. + property string _previousResolution: "" //Internal variable to detect changes. + Component.onCompleted: _previousResolution = Cura.MachineManager.activeQualityType; Cura.IconWithText { |