refactor: delete project

This commit is contained in:
Carlos Valente
2024-06-26 21:51:20 +02:00
committed by Carlos Valente
parent 21454947e0
commit ad0e821cc0
4 changed files with 69 additions and 17 deletions
@@ -36,6 +36,11 @@ class AppState {
return this.config.data;
}
async isLastLoadedProject(projectName: string): Promise<boolean> {
const lastLoaded = await this.getLastLoadedProject();
return lastLoaded === projectName;
}
async getLastLoadedProject(): Promise<string> {
const data = await this.get();
return data.lastLoadedProject;