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)
101public TrayViewState State => _state; 154public bool IsRecentExpanded => _recentExpanded ?? _state.AppHosts.Count == 0; 745var state = _state; 1243PanelSection.Running => _state.AppHosts.Where(host => host.Id.AppHostPid != 0), 1244PanelSection.Pinned => _state.AppHosts.Where(host => host.Id.AppHostPid == 0), 1245_ => IsRecentExpanded ? _state.RecentAppHosts : [] 1342PanelConfirmKind.RemoveMissing => _state.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id), 1345var valid = confirm.Kind == PanelConfirmKind.ClearRecent ? _state.CanClearRecent : current is not null;