Commit f1214cbe authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix REPL bug when switching to freshly opened projects

Change-Id: If71bbaee9000dc6332d1452cb02be63a1c3402e2
parent 83b79084
......@@ -416,6 +416,7 @@ public class DesignToolbar extends Toolbar {
screen.screenName, new SwitchScreenAction(projectId, screen.screenName)));
}
projectNameLabel.setText(projectName);
YaBlocksEditor.resendAssetsAndExtensions(); // Send assets for active project
} else {
ErrorReporter.reportError("Design toolbar doesn't know about project " + projectName +
" with id " + projectId);
......
......@@ -698,7 +698,9 @@ public final class YaBlocksEditor extends FileEditor
}
public static native void resendAssetsAndExtensions()/*-{
if (top.ReplState && top.ReplState.state == Blockly.ReplMgr.rsState.CONNECTED) {
if (top.ReplState && (top.ReplState.state == Blockly.ReplMgr.rsState.CONNECTED ||
top.ReplState.state == Blockly.ReplMgr.rsState.EXTENSIONS ||
top.ReplState.state == Blockly.ReplMgr.rsState.ASSET)) {
Blockly.ReplMgr.resendAssetsAndExtensions();
}
}-*/;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment