MCPcopy Create free account
hub / github.com/6174/comflowyspace / showLoadingScreen

Function showLoadingScreen

apps/electron-backend/layers/main/src/loading.ts:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4let loadingScreen: Electron.BrowserWindow | null;
5
6export function showLoadingScreen() {
7 loadingScreen = new BrowserWindow({
8 width: 300,
9 height: 200,
10 frame: false,
11 transparent: false,
12 backgroundColor: "white"
13 });
14 loadingScreen.loadFile(path.resolve(__dirname, '../../renderer/dist/loading.html'));
15 loadingScreen.on('closed', () => (loadingScreen = null));
16 loadingScreen.show();
17 // loadingScreen.webContents.openDevTools({ mode: 'detach' })
18}
19
20export function closeLoadingScreen() {
21 loadingScreen && loadingScreen?.close()

Callers 1

index.tsFile · 0.90

Calls 1

onMethod · 0.45

Tested by

no test coverage detected