- update electron from 7.2.4 to 11.0.2
- upgrade electron-related dependencies to latest
- replace deprecated occurrences of webview.getWebContents() with require("electron").remote.webContents.fromId(webview.getWebContentsId())
- add enableRemoteModule: true to createWindow() in main.js until https://github.com/electron/electron/issues/21408 is resolved
Every minute it checks if available disk space < 1 GB.
It requires new module - diskspace - works on Windows Linux and Mac.
Tested only on Linux.
If the partition where Rambox is running from has < 1 GB available space:
- a warning dialog appears and Rambox freezes (synchronous dialog).
Dialog has info about:
-- remaining space
-- rambox/electron installation path
-- instruction to free up more space and that the app will exit upon dialog dismissal
-- OK button which quits Rambox
No matter how the dialog is dismissed, Rambox quits.
Every minute it check free disk space.
It uses new module - diskspace - works on Windows Linux and Mac.
If the partition where Rambox is installed has < 1 GB available space:
- a warning dialog appears with info about:
-- remaining space
-- rambox/electron installation path
-- OK button which quits Rambox
No matter how the dialog is dismissed, it will quit Rambox.
Now "minimize" depends on "window_display_behavior" instead of "window_close_behavior".
Also fixed mainWindow restoration when double clicking tray icon.
Fixes#2263