Minor fix

This commit is contained in:
Pieter Vander Vennet 2020-07-29 21:50:19 +02:00
parent e3309dce0c
commit 539931d011

View file

@ -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;