Added support for opening from clicking gbsproj on Windows (need to manually associate file extension to application right now)
@@ -197,7 +197,10 @@ app.on("ready", async () => {
await installExtension(REDUX_DEVTOOLS);
}
- if (splashWindow === null && mainWindow === null) {
+ const lastArg = process.argv[process.argv.length - 1];
+ if (process.argv.length >= 2 && lastArg.indexOf("-") !== 0) {
+ openProject(lastArg);
+ } else if (splashWindow === null && mainWindow === null) {
createSplash();
}
});
