INNER CODE UNIT · JavaScript

selectProject

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

async function selectProject(parentWin, errorMessage = null) {
    return new Promise(async (resolve) => {
        // Load config first
        let recentProjects = [];
        try {
            const config = await loadConfig();
            recentProjects = config.recentProjects || [];
        } catch (error) {
            console.error('Failed to load projects:', error.message);
        }

        const selectionWin = await createProjectSelectionWindow(parentWin, errorMessage, recentProjects);

        const actionHandler = async (event, action) => {
            let dataDir = null;
            if (action === 'new' || action === 'open') {
                selectionWin.hide();
                if (action === 'new') {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…