update
This commit is contained in:
parent
e43cd81e7c
commit
fcf3378fe4
@ -5,7 +5,7 @@ import { getGlobalProjects } from "./Projects";
|
|||||||
export const addProject = (f:{():Project}) =>{
|
export const addProject = (f:{():Project}) =>{
|
||||||
const project = f()
|
const project = f()
|
||||||
if(getGlobalProjects()[project.name]){
|
if(getGlobalProjects()[project.name]){
|
||||||
printErrorOrDebug(`the project ${project.name} was used please rename it`)
|
printErrorOrDebug(`the project name ${project.name} was used please rename it`)
|
||||||
}
|
}
|
||||||
getGlobalProjects()[project.name] = project
|
getGlobalProjects()[project.name] = project
|
||||||
}
|
}
|
@ -7,6 +7,7 @@ addProject(()=>{
|
|||||||
return new CppProject("hello")
|
return new CppProject("hello")
|
||||||
})
|
})
|
||||||
|
|
||||||
new CppProject("hello")
|
|
||||||
|
|
||||||
new CppProject("hello")
|
addProject(()=>{
|
||||||
|
return new CppProject("hello")
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user