Skip to content
Snippets Groups Projects
Commit 9525caa5 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Set initial project export name in file chooser

parent d44b8132
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,7 @@ public class ProjectExportDialog extends NVC implements ProjectExporterDelegate
NVCStage nvcStage = applyViewControllerToStage();
nvcStage.initOwner(owner);
addCloseKeyShortcut(nvcStage::close);
busyView = new BusyView(this);
}
......@@ -83,6 +84,7 @@ public class ProjectExportDialog extends NVC implements ProjectExporterDelegate
String extensionName = Localization.getString(Strings.FILE_FILTER_ZIP);
ExtensionFilter extensionFilter = new ExtensionFilter(extensionName, PlayPadMain.ZIP_TYPE);
chooser.getExtensionFilters().add(extensionFilter);
chooser.setInitialFileName(String.format("%s.zip", projectRef.getName()));
File file = chooser.showSaveDialog(getContainingWindow());
if (file != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment