INNER CODE UNIT · JavaScript

actionHandler

frangoteam/FUXA · app/electron/main.js:258

        const actionHandler = async (event, action) => {
            let dataDir = null;
            if (action === 'new' || action === 'open') {
                selectionWin.hide();
                if (action === 'new') {
                    dataDir = await createNewProject(parentWin);
                } else {
                    dataDir = await openProject(parentWin);
                }
                if (dataDir) {
                    // Valid project selected
                    ipcMain.removeListener('project-action', actionHandler);
                    selectionWin.close();
                    resolve(dataDir);
                } else {
                    // User canceled, show window again
                    selectionWin.show();
                    // Keep listening for more actions

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…