Set tab size to 4

This commit is contained in:
Jonatan Heyman 2023-01-15 10:53:09 +01:00
parent 7595d3fc86
commit fbac07d338

View File

@ -1,4 +1,4 @@
import { app, BrowserWindow, shell, ipcMain } from 'electron' import { app, BrowserWindow, shell, ipcMain, Menu, nativeTheme } from 'electron'
import { release } from 'node:os' import { release } from 'node:os'
import { join } from 'node:path' import { join } from 'node:path'
@ -29,6 +29,8 @@ if (!process.env.VITE_DEV_SERVER_URL && !app.requestSingleInstanceLock()) {
process.exit(0) process.exit(0)
} }
// remove default menu
//Menu.setApplicationMenu(null)
// Remove electron security warnings // Remove electron security warnings
// This warning only shows in development mode // This warning only shows in development mode
@ -56,6 +58,8 @@ async function createWindow() {
}, },
}) })
//nativeTheme.themeSource = "light"
if (process.env.VITE_DEV_SERVER_URL) { // electron-vite-vue#298 if (process.env.VITE_DEV_SERVER_URL) { // electron-vite-vue#298
win.loadURL(url) win.loadURL(url)
// Open devTool if the app is not packaged // Open devTool if the app is not packaged