[Workspaces] add check on project id when launching from editor (#34802)

This commit is contained in:
Laszlo Nemeth
2024-09-20 12:10:29 +02:00
committed by GitHub
parent 3f44ad186d
commit cf470a6dbf

View File

@@ -104,9 +104,12 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdline, int cm
{ {
auto savedWorkspaces = WorkspacesData::WorkspacesProjectJSON::FromJson(savedWorkspacesJson.value()); auto savedWorkspaces = WorkspacesData::WorkspacesProjectJSON::FromJson(savedWorkspacesJson.value());
if (savedWorkspaces.has_value()) if (savedWorkspaces.has_value())
{
if (savedWorkspaces.value().id == id)
{ {
projectToLaunch = savedWorkspaces.value(); projectToLaunch = savedWorkspaces.value();
} }
}
else else
{ {
Logger::critical("Incorrect Workspaces file"); Logger::critical("Incorrect Workspaces file");