From c26b037ca5ba5a83a7417aba2cd604f9d8c0c3b1 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 27 Jul 2020 11:45:26 +0200 Subject: [PATCH] Small fixes --- UI/Input/CheckBox.ts | 2 -- index.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/UI/Input/CheckBox.ts b/UI/Input/CheckBox.ts index 5c5c120..7f03c97 100644 --- a/UI/Input/CheckBox.ts +++ b/UI/Input/CheckBox.ts @@ -6,8 +6,6 @@ import instantiate = WebAssembly.instantiate; export class CheckBox extends UIElement{ - private data: UIEventSource; - private readonly _data: UIEventSource; private readonly _showEnabled: string|UIElement; private readonly _showDisabled: string|UIElement; diff --git a/index.ts b/index.ts index 86763b9..6ca5c82 100644 --- a/index.ts +++ b/index.ts @@ -233,10 +233,10 @@ new CheckBox(layerControl, closedFilterButton).AttachTo("filter__selection"); // ------------------ Setup various other UI elements ------------ -document.title = layoutToUse.title.InnerRender(); +document.title = Translations.W(layoutToUse.title).InnerRender(); Locale.language.addCallback(e => { - document.title = layoutToUse.title.InnerRender(); + document.title = Translations.W(layoutToUse.title).InnerRender(); })