this.add_props.show(_this.left_tree.getActiveFile().palete(), "signals", sel.fqn());
break;
- case State.CODEEDIT:
+ case State.CODE:
// SAVE FIRST???
-
- this.codeEditHide();
+ this.switchState(State.PREVIEW);
+ this.codeEditHide();
break;
public void switchState(State new_state)
{
- if (this.state == State.PREVIEW) {
- // try and do a snapshot..
-
-
- }
-
-
switch (this.state) {
break;
case State.CODE:
+
+
+ this.code_editor.saveContents();
this.win.codeeditview.el.save_easing_state();
this.win.codeeditview.el.set_scale(0.0f,0.0f);
this.win.codeeditview.el.restore_easing_state();