changing the way sense editing works, now general

This commit is contained in:
2019-11-13 23:20:34 +01:00
parent b7b91fa6d6
commit daa56ba7ac
6 changed files with 33 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ class ShowSenseLabelEdit(GenericShowModal):
super().update_model(model)
model.sense = self.arg
model.sense.temporary_labels = model.sense.labels[:]
model.sense.make_copy()
model.modal = lambda: modals.edit_sense_label(model.sense)

View File

@@ -30,7 +30,8 @@ class AddSenseLabel(NoReset):
self.sense = prop
def update_model(self, model):
self.sense.temporary_labels.append("")
# just adding to the copy to show in the modal
self.sense.copy().labels.append("")
class EditSenseDefinition(SimpleEditMessage):