mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07:00
Changing to a printer with user settings doesn't trigger keep/discard popup anymore
Fixes #2499 CURA-4384
This commit is contained in:
parent
e33528538f
commit
7a85dc28d7
2 changed files with 3 additions and 2 deletions
|
|
@ -818,7 +818,7 @@ UM.MainWindow
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: Printer
|
target: CuraApplication
|
||||||
onShowDiscardOrKeepProfileChanges:
|
onShowDiscardOrKeepProfileChanges:
|
||||||
{
|
{
|
||||||
discardOrKeepProfileChangesDialog.show()
|
discardOrKeepProfileChangesDialog.show()
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,8 @@ Item
|
||||||
}
|
}
|
||||||
|
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
if(Cura.MachineManager.activeMachine != null)
|
// Only change if an active machine is set and the slider is visible at all.
|
||||||
|
if(Cura.MachineManager.activeMachine != null && visible)
|
||||||
{
|
{
|
||||||
//Prevent updating during view initializing. Trigger only if the value changed by user
|
//Prevent updating during view initializing. Trigger only if the value changed by user
|
||||||
if(qualitySlider.value != qualityModel.activeQualityId)
|
if(qualitySlider.value != qualityModel.activeQualityId)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue