Skip to content

Commit

Permalink
#297 - fix for PR (layers GUI was not updated automatically)
Browse files Browse the repository at this point in the history
  • Loading branch information
viliusle committed Feb 22, 2022
1 parent 7b1fac9 commit b9ab374
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/modules/layer/composition.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import app from './../../app.js';
import config from './../../config.js';
import Dialog_class from './../../libs/popup.js';
import Base_gui_class from "../../core/base-gui.js";

class Layer_composition_class {

constructor() {
this.POP = new Dialog_class();
this.Base_gui_class = new Base_gui_class();
}

composition() {
Expand Down Expand Up @@ -41,6 +43,7 @@ class Layer_composition_class {
];

var initial_composition = config.layer.composition;
var _this = this;

var settings = {
title: 'Composition',
Expand All @@ -55,6 +58,7 @@ class Layer_composition_class {
}
config.layer.composition = params.composition;
config.need_render = true;
_this.Base_gui_class.GUI_layers.render_layers();
},
on_finish: function (params) {
config.layer.composition = initial_composition;
Expand All @@ -72,6 +76,7 @@ class Layer_composition_class {
on_cancel: function (params) {
config.layer.composition = initial_composition;
config.need_render = true;
_this.Base_gui_class.GUI_layers.render_layers();
},
};
this.POP.show(settings);
Expand Down

0 comments on commit b9ab374

Please sign in to comment.