fix: Recaf idling in background after closing
@@ -48,16 +48,11 @@ public class MainWindow extends Application {
// Set instances
window = this;
this.stage = stage;
+ this.stage.setOnCloseRequest(e -> controller.exit());
setup();
stage.show();
}
- @Override
- public void stop() throws Exception {
- super.stop();
- controller.exit();
- }
-
private void setup() {
stage.getIcons().add(new Image(resource("icons/logo.png")));
stage.setTitle("Recaf");
