Use 'confirm' button when finishing editing

This commit is contained in:
Dr. Dystopia 2021-12-18 11:45:49 +01:00
parent 3a52599e49
commit 48fd9e877d
2 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,7 @@
"common.automatic": "Auto",
"common.random": "Random",
"common.empty": "Empty",
"common.confirm": "Confirm",
// Settings Window title
"common.interface_settings": "Interface Settings",

View File

@ -1292,7 +1292,11 @@ impl Controls {
let create = neat_button(
create_button,
i18n.get("common.create"),
i18n.get(if character_id.is_some() {
"common.confirm"
} else {
"common.create"
}),
FILL_FRAC_ONE,
button_style,
(!name.is_empty()).then_some(confirm_msg),