From 8c35bfd67bc6f601bdce29f2dbacf4b0aeeaf987 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 6 Jan 2023 03:44:04 +0100 Subject: [PATCH] Use GuiState type instead of fully typed states --- UI/BigComponents/LeftControls.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/UI/BigComponents/LeftControls.ts b/UI/BigComponents/LeftControls.ts index 952789d762..a75daabd27 100644 --- a/UI/BigComponents/LeftControls.ts +++ b/UI/BigComponents/LeftControls.ts @@ -14,17 +14,10 @@ import FeatureInfoBox from "../Popup/FeatureInfoBox" import CopyrightPanel from "./CopyrightPanel" import FeaturePipelineState from "../../Logic/State/FeaturePipelineState" import Hotkeys from "../Base/Hotkeys" +import { DefaultGuiState } from "../DefaultGuiState" export default class LeftControls extends Combine { - constructor( - state: FeaturePipelineState, - guiState: { - currentViewControlIsOpened: UIEventSource - downloadControlIsOpened: UIEventSource - filterViewIsOpened: UIEventSource - copyrightViewIsOpened: UIEventSource - } - ) { + constructor(state: FeaturePipelineState, guiState: DefaultGuiState) { const currentViewFL = state.currentView?.layer const currentViewAction = new Toggle( new Lazy(() => {