fix config

This commit is contained in:
tocque 2020-01-23 10:14:22 +08:00
parent 7ff1ac3b1b
commit 95c0dce37b
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
{"lastUsed":[],"foldPerCol":50,"folded":false,"editorLastFloorId":"sample0","disableBlocklyReplace":false,"shortcut":{"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0}}
{"lastUsed":[],"foldPerCol":50,"folded":false,"editorLastFloorId":null,"disableBlocklyReplace":false,"shortcut":{"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0}}

View File

@ -39,7 +39,7 @@ editor_materialpanel_wrapper = function (editor) {
var perCol = parseInt(prompt("请输入折叠素材模式下每列的个数:", "50")) || 0;
if (perCol > 0) {
editor.config.set('foldPerCol', perCol, false);
editor.config.set('folded', false, function() {
editor.config.set('folded', true, function() {
window.location.reload();
});
}