Build correct states for safe profiles flow (except actual safe).

Re-use Discard Or Keep dialogue, but have different buttons. (Safe to New/Override instead of Keep/Discard.) The actual safa action is still the old one though (for either new button, it still goes to the old 'make a new profile' action). Besides that, some cosmetics have to be done to the texts as well still.

part of CURA-9347
This commit is contained in:
Remco Burema 2022-11-30 12:40:07 +01:00
parent 79629e477d
commit c13deba1ea
4 changed files with 50 additions and 6 deletions

View file

@ -709,8 +709,8 @@ class CuraApplication(QtApplication):
self.showMessageBox.emit(title, text, informativeText, detailedText, buttons, icon)
showDiscardOrKeepProfileChanges = pyqtSignal()
showCompareAndSaveProfileChanges = pyqtSignal(str)
@pyqtSlot()
def discardOrKeepProfileChanges(self) -> bool:
has_user_interaction = False
choice = self.getPreferences().getValue("cura/choice_on_profile_override")