messages now a bit different, less contructions
not constructing one for each possible message but only constructing when message happens
This commit is contained in:
@@ -55,7 +55,7 @@ class ShowEditTranslation(ClickMessage):
|
||||
translation.make_copy()
|
||||
num_clusters = len(parent.translations)
|
||||
model.modal_set(lambda: modals.edit_translation(
|
||||
translation, cidx, num_clusters, EditTranslation(translation, cidx)))
|
||||
translation, cidx, num_clusters, (EditTranslation, translation, cidx)))
|
||||
|
||||
|
||||
class ShowAddTranslation(ClickMessage):
|
||||
@@ -68,7 +68,7 @@ class ShowAddTranslation(ClickMessage):
|
||||
translation,
|
||||
-1,
|
||||
len(chosen_sense_or_example.translations),
|
||||
AddTranslation(translation, -1, chosen_sense_or_example)))
|
||||
(AddTranslation, translation, -1, chosen_sense_or_example)))
|
||||
|
||||
|
||||
class ShowEntryLabelsEdit(ClickMessage):
|
||||
|
||||
Reference in New Issue
Block a user