Skip to content

Commit

Permalink
[Workspaces] add check on project id when launching from editor
Browse files Browse the repository at this point in the history
  • Loading branch information
donlaci committed Sep 11, 2024
1 parent 749aa41 commit 75754e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/Workspaces/WorkspacesLauncher/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cm
auto savedWorkspaces = WorkspacesData::WorkspacesProjectJSON::FromJson(savedWorkspacesJson.value());
if (savedWorkspaces.has_value())
{
projectToLaunch = savedWorkspaces.value();
if (savedWorkspaces.value().id == id)
{
projectToLaunch = savedWorkspaces.value();
}
}
else
{
Expand Down

0 comments on commit 75754e6

Please sign in to comment.