From 2da311a08e641b9c8d540bc6f3f8bc7282e82612 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 4 Mar 2026 10:43:50 +0100 Subject: [PATCH] Supress the keep/discard dialog when opening files. Otherwise the user might be asked (with incorrect values even, based on the profile, not the current changes they made) for all setting-changes that are both a user change (so no default) _and_ changed in the file to a different value to keep/discard. This 'popped up' (pun intended) after some refactoring of 3mf loading aparently. CURA-13015 --- cura/CuraApplication.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index bdf26c889f..df78cdec7b 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -773,7 +773,10 @@ class CuraApplication(QtApplication): def discardOrKeepProfileChanges(self) -> bool: has_user_interaction = False choice = self.getPreferences().getValue("cura/choice_on_profile_override") - if choice == "always_discard": + if not self._currently_loading_files: + # opening from a file; don't show dialog and KEEP the profile + self.discardOrKeepProfileChangesClosed("keep") + elif choice == "always_discard": # don't show dialog and DISCARD the profile self.discardOrKeepProfileChangesClosed("discard") elif choice == "always_keep":