mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 14:59:16 +08:00
[Workspaces] eliminate crash threat (#35535)
Co-authored-by: Seraphima <zykovas91@gmail.com>
This commit is contained in:
parent
c3fe541139
commit
b0be69a1b7
@ -398,6 +398,11 @@ namespace WorkspacesEditor.ViewModels
|
|||||||
|
|
||||||
public async void LaunchProject(Project project, bool exitAfterLaunch = false)
|
public async void LaunchProject(Project project, bool exitAfterLaunch = false)
|
||||||
{
|
{
|
||||||
|
if (project == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await Task.Run(() => RunLauncher(project.Id, InvokePoint.EditorButton));
|
await Task.Run(() => RunLauncher(project.Id, InvokePoint.EditorButton));
|
||||||
if (_workspacesEditorIO.ParseWorkspaces(this).Result == true)
|
if (_workspacesEditorIO.ParseWorkspaces(this).Result == true)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user