@@ -19,7 +19,7 @@ import {
1919 getProfileTimelineUnit ,
2020 getGlobalTracks ,
2121 getGlobalTrackReferences ,
22- getHiddenTrackCount ,
22+ getTrackCount ,
2323 getGlobalTrackOrder ,
2424 getPanelLayoutGeneration ,
2525} from 'firefox-profiler/selectors' ;
@@ -39,7 +39,7 @@ import type {
3939 GlobalTrack ,
4040 InitialSelectedTrackReference ,
4141 GlobalTrackReference ,
42- HiddenTrackCount ,
42+ TrackCount ,
4343 Milliseconds ,
4444 StartEndRange ,
4545 TimelineUnit ,
@@ -60,7 +60,7 @@ type StateProps = {
6060 readonly panelLayoutGeneration : number ;
6161 readonly zeroAt : Milliseconds ;
6262 readonly profileTimelineUnit : TimelineUnit ;
63- readonly hiddenTrackCount : HiddenTrackCount ;
63+ readonly trackCount : TrackCount ;
6464} ;
6565
6666type DispatchProps = {
@@ -75,7 +75,7 @@ type State = {
7575} ;
7676
7777class TimelineSettingsHiddenTracks extends React . PureComponent < {
78- readonly hiddenTrackCount : HiddenTrackCount ;
78+ readonly trackCount : TrackCount ;
7979 readonly changeRightClickedTrack : typeof changeRightClickedTrack ;
8080} > {
8181 _showMenu = ( event : React . MouseEvent < HTMLElement > ) => {
@@ -90,7 +90,7 @@ class TimelineSettingsHiddenTracks extends React.PureComponent<{
9090 } ;
9191
9292 override render ( ) {
93- const { hiddenTrackCount } = this . props ;
93+ const { trackCount } = this . props ;
9494
9595 return (
9696 < Localized
@@ -99,8 +99,8 @@ class TimelineSettingsHiddenTracks extends React.PureComponent<{
9999 span : < span className = "timelineSettingsHiddenTracksNumber" /> ,
100100 } }
101101 vars = { {
102- visibleTrackCount : hiddenTrackCount . total - hiddenTrackCount . hidden ,
103- totalTrackCount : hiddenTrackCount . total ,
102+ visibleTrackCount : trackCount . total - trackCount . hidden ,
103+ totalTrackCount : trackCount . total ,
104104 } }
105105 >
106106 < button
@@ -109,11 +109,11 @@ class TimelineSettingsHiddenTracks extends React.PureComponent<{
109109 className = "timelineSettingsHiddenTracks"
110110 >
111111 < span className = "timelineSettingsHiddenTracksNumber" >
112- { hiddenTrackCount . total - hiddenTrackCount . hidden }
112+ { trackCount . total - trackCount . hidden }
113113 </ span >
114114 { ' / ' }
115115 < span className = "timelineSettingsHiddenTracksNumber" >
116- { hiddenTrackCount . total } { ' ' }
116+ { trackCount . total } { ' ' }
117117 </ span >
118118 tracks
119119 </ button >
@@ -146,7 +146,7 @@ class FullTimelineImpl extends React.PureComponent<Props, State> {
146146 width,
147147 globalTrackReferences,
148148 panelLayoutGeneration,
149- hiddenTrackCount ,
149+ trackCount ,
150150 changeRightClickedTrack,
151151 innerElementRef,
152152 } = this . props ;
@@ -155,9 +155,9 @@ class FullTimelineImpl extends React.PureComponent<Props, State> {
155155 < >
156156 < TimelineSelection width = { width } >
157157 < div className = "timelineHeader" >
158- { hiddenTrackCount . total > 1 ? (
158+ { trackCount . total > 1 ? (
159159 < TimelineSettingsHiddenTracks
160- hiddenTrackCount = { hiddenTrackCount }
160+ trackCount = { trackCount }
161161 changeRightClickedTrack = { changeRightClickedTrack }
162162 />
163163 ) : (
@@ -196,7 +196,7 @@ class FullTimelineImpl extends React.PureComponent<Props, State> {
196196 </ Reorderable >
197197 </ OverflowEdgeIndicator >
198198 </ TimelineSelection >
199- { hiddenTrackCount . total > 1 ? < TimelineTrackContextMenu /> : null }
199+ { trackCount . total > 1 ? < TimelineTrackContextMenu /> : null }
200200 </ >
201201 ) ;
202202 }
@@ -215,7 +215,7 @@ export const FullTimeline = explicitConnect<
215215 zeroAt : getZeroAt ( state ) ,
216216 profileTimelineUnit : getProfileTimelineUnit ( state ) ,
217217 panelLayoutGeneration : getPanelLayoutGeneration ( state ) ,
218- hiddenTrackCount : getHiddenTrackCount ( state ) ,
218+ trackCount : getTrackCount ( state ) ,
219219 } ) ,
220220 mapDispatchToProps : {
221221 changeGlobalTrackOrder,
0 commit comments