mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[Workspaces] add check on project id when launching from editor (#34802)
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user