mirror of
https://github.com/heyman/heynote.git
synced 2024-11-22 07:54:11 +01:00
Set tab size to 4
This commit is contained in:
parent
7595d3fc86
commit
fbac07d338
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user