mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:29:02 +08:00
CURA-5164 Fix a bug when open the discard or keep dialog. It was using
a non-existing variable.
This commit is contained in:
parent
8ad409ff55
commit
67ce55049b
@ -555,7 +555,7 @@ class CuraApplication(QtApplication):
|
||||
elif choice == "always_keep":
|
||||
# don't show dialog and KEEP the profile
|
||||
self.discardOrKeepProfileChangesClosed("keep")
|
||||
elif self._use_gui:
|
||||
elif not self._is_headless:
|
||||
# ALWAYS ask whether to keep or discard the profile
|
||||
self.showDiscardOrKeepProfileChanges.emit()
|
||||
has_user_interaction = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user