From e54015cfbabbc6296d41131309514cf11a27cbc1 Mon Sep 17 00:00:00 2001 From: Eder Moraes <54563944+edermcastro@users.noreply.github.com> Date: Tue, 27 Jan 2026 00:32:52 -0300 Subject: [PATCH] adicionado switch pra habilitar ou desativar o autostart --- main.js | 3 +-- operator.html | 12 ++++++++-- style.css | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index 5963102..5fd746c 100644 --- a/main.js +++ b/main.js @@ -201,6 +201,7 @@ function createOperatorWindow() { }); // operatorWin.webContents.openDevTools(); + operatorWin.webContents.executeJavaScript('localStorage.setItem("version","' + app.getVersion() + '")'); operatorWin.loadFile('operator.html'); @@ -264,8 +265,6 @@ function createFloatingWindow() { floatingWin.loadFile('floating.html'); - floatingWin.webContents.executeJavaScript('localStorage.setItem("version","' + app.getVersion() + '")'); - // Envia a contagem inicial para a janela flutuante const data = readData(); floatingWin.webContents.on('did-finish-load', () => { diff --git a/operator.html b/operator.html index a338341..d9ed711 100644 --- a/operator.html +++ b/operator.html @@ -19,6 +19,14 @@ + +
+ Iniciar automaticamente com o sistema +
+ @@ -29,11 +37,11 @@