disabled dragging the project scene icon

snap7
jmoenig 2021-05-19 16:16:59 +02:00
rodzic 29d4742261
commit e6a81406ce
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -10,6 +10,7 @@
### 2021-05-19
* gui: disabled scene icon context menu for project scene
* gui: disabled dragging the project scene icon
### 2021-05-18
* gui: fixed exporting media only for a single scene

Wyświetl plik

@ -10494,8 +10494,11 @@ SceneAlbumMorph.prototype.updateList = function () {
};
this.addBack(this.contents);
this.ide.scenes.asArray().forEach(scene => {
this.ide.scenes.asArray().forEach((scene, i) => {
icon = new SceneIconMorph(scene);
if (i < 1) {
icon.isDraggable = false; // project scene cannot be rearranged
}
icon.setPosition(new Point(x, y));
this.addContents(icon);
y = icon.bottom() + padding;