5 writes to _state
aspire-tray (5)
src\Aspire.Tray\Common\TrayPanel.cs (5)
103
_state
= state;
281
_state
= state;
291
_state
= _pendingState;
324
_state
= _pendingState;
423
_state
= _pendingState;
8 references to _state
aspire-tray (8)
src\Aspire.Tray\Common\TrayPanel.cs (8)
107
public TrayViewState State =>
_state
;
160
public bool IsRecentExpanded => _recentExpanded ??
_state
.AppHosts.Count == 0;
828
var state =
_state
;
1356
PanelSection.Running =>
_state
.AppHosts.Where(host => host.Id.AppHostPid != 0),
1357
PanelSection.Pinned =>
_state
.AppHosts.Where(host => host.Id.AppHostPid == 0),
1358
_ => IsRecentExpanded ?
_state
.RecentAppHosts : []
1455
PanelConfirmKind.RemoveMissing =>
_state
.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id),
1458
var valid = confirm.Kind == PanelConfirmKind.ClearRecent ?
_state
.CanClearRecent : current is not null;