Fix Save As
This commit is contained in:
parent
075988f327
commit
94be84d6e1
@ -155,8 +155,6 @@ public class EditorController implements Initializable, Controller {
|
||||
public void saveCodeArea(boolean isNewFile) {
|
||||
Stage stage = (Stage) editor.getScene().getWindow();
|
||||
|
||||
isNewFile = Model.getActiveFilePath().isEmpty();
|
||||
|
||||
if (isNewFile && FileOperations.saveFileWithDialog(stage, editor.getText())) {
|
||||
this.eventBus.post(new OpenFileEvent(Model.getActiveFilePath()));
|
||||
this.eventBus.post(new FileSaveStateChangedEvent(true));
|
||||
|
@ -124,7 +124,7 @@ public class MenubarController implements Initializable, Controller {
|
||||
*/
|
||||
@FXML
|
||||
private void handleSaveAsFile() {
|
||||
this.eventBus.post(new SaveFileEvent(false));
|
||||
this.eventBus.post(new SaveFileEvent(true));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user