Commit a559d0d7 authored by Grant's avatar Grant
Browse files

Fix source template not hiding when disabled

parent 76b5111c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ export class Template extends EventEmitter<TemplateEvents> {

    switch (key) {
      case "enable":
        this.setElementVisible([this.$canvas], !!value);
        this.setElementVisible([this.$canvas, this.$imageLoader], !!value);
        break;
      case "style":
        if ((value as keyof typeof TemplateStyle) in TemplateStyle) {