mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-03 01:04:35 +08:00
Imported profiles are now directly set as dirty so they are saved to storage upon exit
CURA-2099
This commit is contained in:
parent
d711a510dd
commit
821c915ce6
@ -145,6 +145,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
||||
return { "status": "ok", "message": catalog.i18nc("@info:status", "Successfully imported profile {0}", profile.getName()) }
|
||||
else:
|
||||
for profile in profile_or_list:
|
||||
profile.setDirty(True) # Ensure the profiles are correctly saved
|
||||
if profile.getId() != "":
|
||||
container_registry.addContainer(profile)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user