From 2f7e0ad438806070fc2ad23876220b4cb1386ce3 Mon Sep 17 00:00:00 2001 From: AlexandreSi <32449369+AlexandreSi@users.noreply.github.com> Date: Wed, 31 Aug 2022 11:01:42 +0200 Subject: [PATCH] Attempt to remove modal window frame to hide close button on linux --- newIDE/electron-app/app/ModalWindow.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newIDE/electron-app/app/ModalWindow.js b/newIDE/electron-app/app/ModalWindow.js index 257251ecfdf8..3546d580ccb5 100644 --- a/newIDE/electron-app/app/ModalWindow.js +++ b/newIDE/electron-app/app/ModalWindow.js @@ -36,6 +36,10 @@ const loadModalWindow = ({ backgroundColor, modal: true, center: true, + // Hide top bar to hide close button (needed on Linux) so that + // one cannot close the modal window without using Save or Cancel + // buttons (and lose work on Piskel for instance) (Workaround for #4245). + frame: false, webPreferences: { webSecurity: false, // Allow Node.js API access in renderer process, as long