MCPcopy Index your code
hub / github.com/hokein/electron-sample-apps / handleSaveButton

Function handleSaveButton

mini-code-editor/editor.js:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95function handleSaveButton() {
96 if (fileEntry && hasWriteAccess) {
97 writeEditorToFile(fileEntry);
98 } else {
99 dialog.showSaveDialog(function(filename) {
100 onChosenFileToSave(filename.toString(), true);
101 });
102 }
103}
104
105function initContextMenu() {
106 menu = new Menu();

Callers 1

editor.jsFile · 0.85

Calls 2

writeEditorToFileFunction · 0.85
onChosenFileToSaveFunction · 0.85

Tested by

no test coverage detected