mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +01:00
fix code
This commit is contained in:
parent
32238d9d02
commit
9eafb5683b
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -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 &
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user