Merge pull request #2846 from vrc-get/copilot/fix-template-export-extension-issue

Fix missing file extensions in save dialog default names
This commit is contained in:
anatawa12 2026-04-29 23:11:06 +09:00 committed by GitHub
commit be5c9aa765
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -48,6 +48,9 @@ The format is based on [Keep a Changelog].
- Panic when resolving projects where dependency packages depend on newer versions of locked packages `#2822`
- Missing glibc and libgcc_s dependency notation in .deb / .rpm distributon `#2828`
- Unclear error message for invalid version name or version range `#2842`
- Default file names in save dialogs now include the appropriate file extension `#2846`
- Template export now defaults to `{template name}.alcomtemplate`
- Repository list export now defaults to `repositories.txt`
### Security

View file

@ -537,7 +537,7 @@ pub async fn environment_export_repositories(
.file()
.set_parent(&window)
.add_filter("Text", &["txt"])
.set_file_name("repositories")
.set_file_name("repositories.txt")
.blocking_save_file()
.map(|x| x.into_path_buf())
.transpose()?

View file

@ -41,7 +41,7 @@ pub async fn environment_export_template(
.dialog()
.file()
.set_parent(&window)
.set_file_name(&template.display_name)
.set_file_name(format!("{}.alcomtemplate", &template.display_name))
.add_filter("ALCOM Project Template", &["alcomtemplate"])
.blocking_save_file()
.map(|x| x.into_path_buf())