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