From 994a6a9404d8f307129dee85354b24c5f2e31579 Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 10 Sep 2017 12:01:47 +0300 Subject: [PATCH] Initial filename in save dialog --- app/src/main/java/com/annimon/hotarufx/io/FileManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/annimon/hotarufx/io/FileManager.java b/app/src/main/java/com/annimon/hotarufx/io/FileManager.java index c0f956e..e743c98 100644 --- a/app/src/main/java/com/annimon/hotarufx/io/FileManager.java +++ b/app/src/main/java/com/annimon/hotarufx/io/FileManager.java @@ -76,6 +76,9 @@ public class FileManager implements DocumentManager { fileChooser.setTitle(FILE_SAVE_TITLE); if (currentFile != null) { fileChooser.setInitialDirectory(currentFile.getParentFile()); + fileChooser.setInitialFileName(currentFile.getName()); + } else { + fileChooser.setInitialFileName("animation.hfx"); } val newFile = fileChooser.showSaveDialog(stage); if (newFile == null) {