mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 19:54:44 -07:00
need to wrap windows shell process spawning to avoid warnings on other systems
This commit is contained in:
parent
cbc14e1ca0
commit
3ab518f090
1 changed files with 6 additions and 2 deletions
|
|
@ -70,7 +70,9 @@ export function startMonitoring(window: BrowserWindow) {
|
|||
mainWindow = window;
|
||||
isRunning = true;
|
||||
|
||||
if (platform === 'win32') {
|
||||
powerShellStart();
|
||||
}
|
||||
|
||||
void collectAndSendCpuMetrics();
|
||||
cpuInterval = setInterval(() => {
|
||||
|
|
@ -105,8 +107,10 @@ export function stopMonitoring() {
|
|||
}
|
||||
isRunning = false;
|
||||
|
||||
if (platform === 'win32') {
|
||||
powerShellRelease();
|
||||
}
|
||||
}
|
||||
|
||||
function updateTrayWithMetrics() {
|
||||
if (isTrayActive()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue