Skip to content

Commit

Permalink
Merge branch 'fix/IDE-warn-if-open-changed' of github.com:BelaPlatfor…
Browse files Browse the repository at this point in the history
…m/Bela into fix/IDE-warn-if-open-changed
  • Loading branch information
disastrid committed Jan 1, 2017
2 parents 29ac07d + 9bbd6cb commit fa0c99c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IDE/dist/ProjectSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ function getArgs(project) {
case 0: return [4 /*yield*/, read(project)];
case 1:
CLArgs = (_a.sent()).CLArgs;
if (!CLArgs)
return [2 /*return*/, { CL: "", make: [] }];
CL = '';
for (key in CLArgs) {
if (key[0] === '-' && key[1] === '-') {
Expand Down
2 changes: 2 additions & 0 deletions IDE/src/ProjectSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export async function restoreDefaultCLArgs(data: any): Promise<any> {
}
export async function getArgs(project: any): Promise<{CL: string, make: string[]}> {
let CLArgs = (await read(project)).CLArgs;
if(!CLArgs)
return { CL: "", make: []};
let CL: string = '';
for (let key in CLArgs) {
if (key[0] === '-' && key[1] === '-'){
Expand Down

0 comments on commit fa0c99c

Please sign in to comment.