mirror of https://github.com/rusefi/RomRaider.git
updated logger profile save as action
git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@761 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d
This commit is contained in:
parent
3023053413
commit
adc334dfb1
|
@ -32,7 +32,10 @@ public final class SaveProfileAsAction extends AbstractAction {
|
|||
if (fc.showSaveDialog(logger) == APPROVE_OPTION) {
|
||||
File selectedFile = fc.getSelectedFile();
|
||||
if (!selectedFile.exists() || showConfirmDialog(logger, selectedFile.getName() + " already exists! Overwrite?") == OK_OPTION) {
|
||||
saveProfileToFile(logger.getCurrentProfile(), selectedFile);
|
||||
String profileFilePath = saveProfileToFile(logger.getCurrentProfile(), selectedFile);
|
||||
logger.getSettings().setLoggerProfileFilePath(profileFilePath);
|
||||
logger.reportMessageInTitleBar("Profile: " + profileFilePath);
|
||||
logger.reportMessage("Profile succesfully saved as: " + profileFilePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue