Update packages/trace-viewer/src/ui/workbench.tsx
Signed-off-by: Simon Knott <info@simonknott.de>
This commit is contained in:
parent
67d86874ec
commit
5fec0e32ba
|
|
@ -68,7 +68,7 @@ export const Workbench: React.FunctionComponent<{
|
||||||
const activeAction = model ? highlightedAction || selectedAction : undefined;
|
const activeAction = model ? highlightedAction || selectedAction : undefined;
|
||||||
const [selectedTime, setSelectedTime] = React.useState<Boundaries | undefined>();
|
const [selectedTime, setSelectedTime] = React.useState<Boundaries | undefined>();
|
||||||
const [sidebarLocation, setSidebarLocation] = useSetting<'bottom' | 'right'>('propertiesSidebarLocation', 'bottom');
|
const [sidebarLocation, setSidebarLocation] = useSetting<'bottom' | 'right'>('propertiesSidebarLocation', 'bottom');
|
||||||
const [, , showRouteActionsSettingInternal] = useSetting(showRouteActionsSetting ? '' : 'show-route-actions', true, 'Show route actions');
|
const [, , showRouteActionsSettingInternal] = useSetting(showRouteActionsSetting ? undefined : 'show-route-actions', true, 'Show route actions');
|
||||||
|
|
||||||
const showSettings = !showRouteActionsSetting;
|
const showSettings = !showRouteActionsSetting;
|
||||||
showRouteActionsSetting ||= showRouteActionsSettingInternal;
|
showRouteActionsSetting ||= showRouteActionsSettingInternal;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue