mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Localize Graphic Style Options refusals
This commit is contained in:
1 parent
0aea8fed95
commit
267ec1fb3b
1 file changed
+4
-1
@@ -51,7 +51,10 @@ fn open_with(app: &mut VectorcraftApp, name: String, target: Target) -> Result<V
|
||||
if !app.session.active().is_some_and(|active| active.uid == document) {
|
||||
return Err(tl!("This graphic style belongs to the document that opened the dialog.").to_owned());
|
||||
}
|
||||
target.run(app, result.fields.text("name").unwrap_or_default()).map(|_| ())
|
||||
target
|
||||
.run(app, result.fields.text("name").unwrap_or_default())
|
||||
.map(|_| ())
|
||||
.map_err(|reason| crate::i18n::message(crate::i18n::current(), &reason))
|
||||
};
|
||||
host::open_held(app, dialog, ok).ok_or("no window")?;
|
||||
Ok(Value::Null)
|
||||
|
||||
Reference in new issue
Block a user