2 writes to IsPinned
aspire-tray (2)
src\Aspire.Tray\Common\TrayController.cs (2)
588
IsPinned
= pins.Contains(TrayAppHostPath.Normalize(host.AppHostPath)),
646
IsPinned
= saved.IsPinned,
5 references to IsPinned
aspire-tray (5)
NativeSmokeHarness.cs (1)
177
Require(_controller.State.AppHosts.Single(host => host.Id == _hosts[0].Id).
IsPinned
, "Pin from the action list did not persist.");
src\Aspire.Tray\Common\TrayPanel.cs (1)
1273
actions.Add(host.
IsPinned
TrayApplication.Actions.cs (2)
49
controller.SetPinned(row.Id.AppHostPath, !row.
IsPinned
);
129
if (controller.State.AppHosts.Any(host => host.
IsPinned
&& !host.IsRunning && TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, path)))
TrayApplication.NativeSmoke.cs (1)
269
.Concat([$"Show {name} in File Explorer", $"Copy the folder path of {name}", row.Host.
IsPinned
? $"Unpin {name}" : $"Pin {name}"])