MCPcopy Create free account
hub / github.com/curiores/SerialAnalyzer / selectOutputDirectory

Function selectOutputDirectory

src/Utils/DataRecording.js:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35export async function selectOutputDirectory(){
36 const selectedDirectory = await ipcRenderer.invoke('dialog','showOpenDialog',{ properties: ['openDirectory'] });
37 if(!selectedDirectory.canceled && (selectedDirectory.filePaths.length > 0)){
38 GlobalSettings.record.directory = selectedDirectory.filePaths[0];
39 }
40}
41
42export function writeDataIfRecording(data){
43 try{

Callers 2

RecordSettingsFunction · 0.90
SerialPauseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected