fix(Menu): Re-add "Save" menu item to Project windows
import { MenuItemConstructorOptions } from 'electron'
import { showSettings } from '../../config/window'
import { isWindows } from '../../menu/utils'
-import { closeActiveTab } from '../../window/windowUtils'
+import { closeActiveTab, saveActiveDoc } from '../../window/windowUtils'
import { openProject } from '../handlers'
export const projectFileMenu: MenuItemConstructorOptions = {
@@ -15,6 +15,14 @@ export const projectFileMenu: MenuItemConstructorOptions = {
},
},
{ type: 'separator' },
+ {
+ label: 'Save',
+ click: () => {
+ saveActiveDoc()
+ },
+ accelerator: 'CommandOrControl+s',
+ },
+ { type: 'separator' },
{
label: 'Close Tab' as const,
click: () => {
