Skip to content

Commit be58ade

Browse files
committed
fix: file > quit was not working
1 parent eb2be5d commit be58ade

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/document/DocumentCommandHandlers.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,13 @@ define(function (require, exports, module) {
17311731
.finally(()=>{
17321732
raceAgainstTime(_safeNodeTerminate())
17331733
.finally(()=>{
1734-
Phoenix.app.closeWindow();
1734+
// In Electron, use allowClose() to bypass the close handler
1735+
// (which would otherwise trigger another cleanup cycle).
1736+
if(window.__ELECTRON__) {
1737+
window.electronAPI.allowClose();
1738+
} else {
1739+
Phoenix.app.closeWindow();
1740+
}
17351741
});
17361742
});
17371743
},

0 commit comments

Comments
 (0)