[Workspaces] Close launcher if there are failed launches. Plus adding new spinner gif

This commit is contained in:
donlaci
2024-08-21 11:13:22 +02:00
parent 7beae3e470
commit 2093dd4cde
5 changed files with 5 additions and 5 deletions

View File

@@ -76,10 +76,10 @@ namespace WorkspacesLauncherUI.Models
{
get => LaunchState switch
{
"waiting" => "../images/spinner.png",
"waiting" => "../images/spinner.gif",
"launched" => "../images/checkmark.png",
"failed" => "../images/failed.png",
_ => "../images/spinner.png",
_ => "../images/spinner.gif",
};
}

View File

@@ -66,7 +66,7 @@ namespace WorkspacesLauncherUI.ViewModels
AppPath = app.Path,
LaunchState = app.State,
});
if (app.State != "launched")
if (app.State != "launched" && app.State != "failed")
{
allLaunched = false;
}

View File

@@ -33,8 +33,8 @@
<None Remove="images\checkmark.png" />
<None Remove="images\DefaultIcon.ico" />
<None Remove="images\failed.png" />
<None Remove="images\spinner.gif" />
<None Remove="images\Workspaces.ico" />
<None Remove="images\spinner.png" />
</ItemGroup>
<ItemGroup>
<COMReference Include="IWshRuntimeLibrary">
@@ -95,7 +95,7 @@
<Resource Include="images\failed.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
<Resource Include="images\spinner.png">
<Resource Include="images\spinner.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
</ItemGroup>

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB