mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-11-16 12:05:22 +00:00
Added preferences for last save directory.
This commit is contained in:
parent
c682b5a81d
commit
3289c0267a
@ -1217,9 +1217,11 @@ public class DiskExplorerTab {
|
||||
*/
|
||||
protected void saveAs() {
|
||||
FileDialog fileDialog = new FileDialog(shell, SWT.SAVE);
|
||||
fileDialog.setFilterPath(userPreferences.getSaveDirectory());
|
||||
fileDialog.setFileName(disks[0].getFilename());
|
||||
fileDialog.setText("Please choose a location and name for your disk image:");
|
||||
String fullpath = fileDialog.open();
|
||||
userPreferences.setSaveDirectory(fileDialog.getFilterPath());
|
||||
if (fullpath == null) {
|
||||
return; // user pressed cancel
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user