restore comments
This commit is contained in:
parent
493b81875a
commit
0113ef2582
1 changed files with 2 additions and 0 deletions
|
@ -258,6 +258,7 @@ const createWindow = async (first = true) => {
|
||||||
...(nativeFrame && isWindows() && nativeFrameConfig.windows),
|
...(nativeFrame && isWindows() && nativeFrameConfig.windows),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// From https://github.com/electron/electron/issues/526#issuecomment-1663959513
|
||||||
const bounds = store.get('bounds') as Rectangle | undefined;
|
const bounds = store.get('bounds') as Rectangle | undefined;
|
||||||
if (bounds) {
|
if (bounds) {
|
||||||
const screenArea = screen.getDisplayMatching(bounds).workArea;
|
const screenArea = screen.getDisplayMatching(bounds).workArea;
|
||||||
|
@ -311,6 +312,7 @@ const createWindow = async (first = true) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.on('app-restart', () => {
|
ipcMain.on('app-restart', () => {
|
||||||
|
// Fix for .AppImage
|
||||||
if (process.env.APPIMAGE) {
|
if (process.env.APPIMAGE) {
|
||||||
app.exit();
|
app.exit();
|
||||||
app.relaunch({
|
app.relaunch({
|
||||||
|
|
Reference in a new issue