Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Sep 1, 2024
1 parent 32238d9 commit 9eafb56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ jobs:

- run: npx tsx script/e2e.mts 'dist/mac-arm64/LosslessCut.app/Contents/MacOS/LosslessCut' screenshot-macos.jpeg
if: startsWith(matrix.os, 'macos')

- run: npx tsx script/e2e.mts 'dist/win-x64/LosslessCut.app/Contents/MacOS/LosslessCut' screenshot-windows.jpeg
if: startsWith(matrix.os, 'windows')

- run: |
export DISPLAY=:0
sudo Xvfb -ac :0 -screen 0 1280x1024x24 > /dev/null 2>&1 &
Expand Down
5 changes: 2 additions & 3 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,9 @@ export function focusWindow() {
}
}

export async function quitApp() {
export function quitApp() {
// allow HTTP API to respond etc.
await timers.setTimeout(1000);
electron.app.quit();
timers.setTimeout(1000).then(() => electron.app.quit());
}

export const hasDisabledNetworking = () => !!disableNetworking;
Expand Down

0 comments on commit 9eafb56

Please sign in to comment.