mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
File chooser dialogs don't append file extension if folder path has a
dot character in it
This commit is contained in:
@@ -158,7 +158,7 @@ public class DialogFactory {
|
||||
if (result == JFileChooser.APPROVE_OPTION) {
|
||||
lastDirectory = fileChooser.getCurrentDirectory();
|
||||
ConfigurationManager.getInstance().writeValue(PATH_KEY, lastDirectory.getAbsolutePath());
|
||||
if (fileChooser.getSelectedFile().getAbsolutePath().contains(".")) {
|
||||
if (fileChooser.getSelectedFile().getName().contains(".")) {
|
||||
return fileChooser.getSelectedFile();
|
||||
} else {
|
||||
return new File(fileChooser.getSelectedFile().getAbsoluteFile() + "." + defaultExtension);
|
||||
|
||||
@@ -1890,6 +1890,10 @@
|
||||
<changeType>IMPROVEMENT</changeType>
|
||||
<description>Preserve z-order of components when copy-pasting</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>File chooser dialogs don't append file extension if folder path has a dot character in it</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>BUG_FIX</changeType>
|
||||
<description>"Cut Line" component sometimes disappears</description>
|
||||
|
||||
Reference in New Issue
Block a user