mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +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) {
|
if (result == JFileChooser.APPROVE_OPTION) {
|
||||||
lastDirectory = fileChooser.getCurrentDirectory();
|
lastDirectory = fileChooser.getCurrentDirectory();
|
||||||
ConfigurationManager.getInstance().writeValue(PATH_KEY, lastDirectory.getAbsolutePath());
|
ConfigurationManager.getInstance().writeValue(PATH_KEY, lastDirectory.getAbsolutePath());
|
||||||
if (fileChooser.getSelectedFile().getAbsolutePath().contains(".")) {
|
if (fileChooser.getSelectedFile().getName().contains(".")) {
|
||||||
return fileChooser.getSelectedFile();
|
return fileChooser.getSelectedFile();
|
||||||
} else {
|
} else {
|
||||||
return new File(fileChooser.getSelectedFile().getAbsoluteFile() + "." + defaultExtension);
|
return new File(fileChooser.getSelectedFile().getAbsoluteFile() + "." + defaultExtension);
|
||||||
|
|||||||
@@ -1890,6 +1890,10 @@
|
|||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Preserve z-order of components when copy-pasting</description>
|
<description>Preserve z-order of components when copy-pasting</description>
|
||||||
</org.diylc.appframework.update.Change>
|
</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>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>BUG_FIX</changeType>
|
<changeType>BUG_FIX</changeType>
|
||||||
<description>"Cut Line" component sometimes disappears</description>
|
<description>"Cut Line" component sometimes disappears</description>
|
||||||
|
|||||||
Reference in New Issue
Block a user