From 539931d0116060baedf7e7e9f61428c63b58372a Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 29 Jul 2020 21:50:19 +0200 Subject: [PATCH] Minor fix --- UI/SimpleAddUI.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/SimpleAddUI.ts b/UI/SimpleAddUI.ts index 13af8c8..4a45e14 100644 --- a/UI/SimpleAddUI.ts +++ b/UI/SimpleAddUI.ts @@ -10,6 +10,7 @@ import Translations from "./i18n/Translations"; import Combine from "./Base/Combine"; import {SubtleButton} from "./Base/SubtleButton"; import {VerticalCombine} from "./Base/VerticalCombine"; +import Locale from "./i18n/Locale"; interface Preset { description: string | UIElement, @@ -47,6 +48,7 @@ export class SimpleAddUI extends UIElement { addButtons: { description: string | UIElement, name: string | UIElement; icon: string; tags: Tag[]; layerToAddTo: FilteredLayer }[], ) { super(zoomlevel); + this.ListenTo(Locale.language); this._zoomlevel = zoomlevel; this._lastClickLocation = lastClickLocation; this._changes = changes;