fix(electron): disable tray & recording for now (#11055)

This commit is contained in:
pengx17
2025-03-21 02:39:16 +00:00
parent e50d09db50
commit 269b92e317

View File

@@ -87,12 +87,20 @@ app
.then(registerHandlers)
.then(registerEvents)
.then(launch)
.then(setupRecording)
.then(createApplicationMenu)
.then(setupTrayState)
.then(registerUpdater)
.catch(e => console.error('Failed create window:', e));
if (isDev) {
app
.whenReady()
.then(setupRecording)
.then(setupTrayState)
.catch(e => {
logger.error('Failed setup recording or tray state:', e);
});
}
if (process.env.SENTRY_RELEASE) {
// https://docs.sentry.io/platforms/javascript/guides/electron/
Sentry.init({