+ if situation.previousSetup:
+ applyPrevious = self.userChoose("This display is known. The last setup for it was like this:\n%s.\nApply the last used configuration?" % str(situation.previousSetup), ("Apply last setup", "Enter different setup"), (True,False), None)
+ if applyPrevious is None:
+ return None
+ if applyPrevious is True:
+ return situation.previousSetup
+ assert applyPrevious is False