5 writes to _state
aspire-tray (5)
src\Aspire.Tray\Common\TrayPanel.cs (5)
97
_state
= state;
276
_state
= state;
286
_state
= _pendingState;
318
_state
= _pendingState;
381
_state
= _pendingState;
8 references to _state
aspire-tray (8)
src\Aspire.Tray\Common\TrayPanel.cs (8)
101
public TrayViewState State =>
_state
;
154
public bool IsRecentExpanded => _recentExpanded ??
_state
.AppHosts.Count == 0;
745
var state =
_state
;
1243
PanelSection.Running =>
_state
.AppHosts.Where(host => host.Id.AppHostPid != 0),
1244
PanelSection.Pinned =>
_state
.AppHosts.Where(host => host.Id.AppHostPid == 0),
1245
_ => IsRecentExpanded ?
_state
.RecentAppHosts : []
1342
PanelConfirmKind.RemoveMissing =>
_state
.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id),
1345
var valid = confirm.Kind == PanelConfirmKind.ClearRecent ?
_state
.CanClearRecent : current is not null;