2 writes to IsPinned
aspire-tray (2)
src\Aspire.Tray\Common\TrayController.cs (2)
607
IsPinned
= pins.Contains(TrayAppHostPath.Normalize(host.AppHostPath)),
662
IsPinned
= saved.IsPinned,
7 references to IsPinned
aspire-tray (7)
NativeSmokeHarness.cs (1)
210
Require(_controller.State.AppHosts.Single(host => host.Id == _hosts[0].Id).
IsPinned
, "Pin action did not persist.");
TrayApplication.Actions.cs (2)
50
controller.SetPinned(row.Id.AppHostPath, !row.
IsPinned
);
131
if (controller.State.AppHosts.Any(host => host.
IsPinned
&& !host.IsRunning && TrayAppHostPath.Comparer.Equals(host.Id.AppHostPath, path)))
TrayApplication.Menus.cs (3)
120
row.Pin = AddAction(root, submenu, host.
IsPinned
? "Unpin AppHost" : "Pin AppHost", new(ActionKind.TogglePin, host.Id), true);
164
UpdateAction(row.Submenu, row.Pin, host?.
IsPinned
== true ? "Unpin AppHost" : "Pin AppHost", host is not null);
389
var command = AddAction(context, context.Handle, host.
IsPinned
? "Unpin AppHost" : "Pin AppHost", new(ActionKind.TogglePin, host.Id), true);
TrayApplication.NativeSmoke.cs (1)
263
host?.
IsPinned
== true ? "Unpin AppHost" : "Pin AppHost", "", "Show in File Explorer", "Copy path", "Open in", ""])),