1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00
This commit is contained in:
Mikael Finstad 2024-09-01 14:59:35 +02:00
parent 32238d9d02
commit 9eafb5683b
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26
2 changed files with 4 additions and 3 deletions

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 &

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;