This commit is contained in:
Mikael Finstad
2024-09-01 14:59:35 +02:00
parent 32238d9d02
commit 9eafb5683b
2 changed files with 4 additions and 3 deletions
+2
View File
@@ -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 &
+2 -3
View File
@@ -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;