Skip to content

Commit ba68e4c

Browse files
committed
Adopt the new active_project_id in the client code
1 parent e4c57e6 commit ba68e4c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/AppStartup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function AppStartup() {
4141

4242
if (isMounted()) {
4343
setInitialized(true);
44-
const projectId = getCachedSetting('current_directory'); // TODO: Open project using project ID
44+
const projectId = getCachedSetting('active_project_id');
4545
if (projectId) {
4646
const projectInfo = await readProjectById(projectId);
4747
await openProject(projectId, projectInfo.path, projectInfo.name);

src/application/listeners/projectEventListeners.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ export function useFileProjectCloseListener() {
109109
};
110110
}
111111

112-
// TODO: This method needs to be refactored to have use a project id instead of a path
113112
function persistActiveProjectInSettings(id: string) {
114-
setCachedSetting('current_directory', id);
113+
setCachedSetting('active_project_id', id);
115114
void saveCachedSettings();
116115
}
117116

0 commit comments

Comments
 (0)