restore comments

This commit is contained in:
yuygfgg
2024-07-14 21:15:58 +08:00
committed by GitHub
parent 493b81875a
commit 0113ef2582
+2
View File
@@ -258,6 +258,7 @@ const createWindow = async (first = true) => {
...(nativeFrame && isWindows() && nativeFrameConfig.windows),
});
// From https://github.com/electron/electron/issues/526#issuecomment-1663959513
const bounds = store.get('bounds') as Rectangle | undefined;
if (bounds) {
const screenArea = screen.getDisplayMatching(bounds).workArea;
@@ -311,6 +312,7 @@ const createWindow = async (first = true) => {
});
ipcMain.on('app-restart', () => {
// Fix for .AppImage
if (process.env.APPIMAGE) {
app.exit();
app.relaunch({