filter FS entities from subject filename, rename new constructor to build

This commit is contained in:
yggverse 2025-01-16 22:04:29 +02:00
parent bb4ddbdddd
commit 2f84c2b86e
4 changed files with 14 additions and 12 deletions

View file

@ -66,7 +66,10 @@ impl Save {
.filters(&filters)
.initial_name(format!(
"{}.pem",
certificate.name.replace(MAIN_SEPARATOR, "-")
certificate
.name
.trim_matches(MAIN_SEPARATOR)
.replace(MAIN_SEPARATOR, "-")
))
.build()
.save(Window::NONE, Cancellable::NONE, {