mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
[Workspaces] Close launcher if there are failed launches. Plus adding new spinner gif
This commit is contained in:
@@ -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",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
BIN
src/modules/Workspaces/WorkspacesLauncherUI/images/spinner.gif
Normal file
BIN
src/modules/Workspaces/WorkspacesLauncherUI/images/spinner.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user