feat(core): 主页面添加新配置项 自动恢复上次编辑状态
This commit is contained in:
@@ -2,6 +2,7 @@ goog.loadJs('common', () => {
|
||||
|
||||
goog.require('path');
|
||||
goog.require('d3');
|
||||
goog.require('Mixly.Config');
|
||||
goog.require('Mixly.Env');
|
||||
goog.require('Mixly.Boards');
|
||||
goog.require('Mixly.App');
|
||||
@@ -41,6 +42,7 @@ const {
|
||||
} = Mixly;
|
||||
|
||||
const { LibManager, File } = goog.isElectron? Electron : Web;
|
||||
const { USER } = Config;
|
||||
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
@@ -107,7 +109,9 @@ Loader.init = () => {
|
||||
Mixly.app.getNav().resize();
|
||||
const workspace = Mixly.app.getWorkspace();
|
||||
const editor = workspace.getEditorsManager().getActive();
|
||||
Loader.restoreBlocks(editor);
|
||||
if (USER.cache !== 'no') {
|
||||
Loader.restoreBlocks(editor);
|
||||
}
|
||||
Mixly.app.removeSkeleton();
|
||||
window.addEventListener('unload', () => Loader.backupBlocks(editor), false);
|
||||
API2.init();
|
||||
|
||||
@@ -656,6 +656,7 @@
|
||||
"require": [
|
||||
"path",
|
||||
"d3",
|
||||
"Mixly.Config",
|
||||
"Mixly.Env",
|
||||
"Mixly.Boards",
|
||||
"Mixly.App",
|
||||
|
||||
@@ -2140,7 +2140,7 @@ En.MIXLY_ESP32_SERVO_SPEED_TOOLIPS = 'Set the rotation speed of the servo(-100~1
|
||||
En.MIXLY_ESP32_LED_SETONOFF = "Set the status of the embedded LED light";
|
||||
En.MIXLY_ESP32_LED_GETONOFF = "Get the current status of the embedded LED light";
|
||||
En.MIXLY_ESP32_LED_SETBRIGHT = "Set the current brightness of the embedded LED light (0 ~ 1023)";
|
||||
En.ZhHans.MIXLY_ESP32_LED_GETBRIGHT = "Get the current brightness of the embedded LED light (0 ~ 1023)";
|
||||
En.MIXLY_ESP32_LED_GETBRIGHT = "Get the current brightness of the embedded LED light (0 ~ 1023)";
|
||||
En.MIXLY_ESP32_MUSIC_PLAYSHOW = "Play the note list and display the corresponding note";
|
||||
En.MIXLY_ESP32_MUSIC_SET_TEMPO = "Set the resolution and speed of playing music";
|
||||
En.MIXLY_ESP32_MUSIC_GET_TEMPO = "Get the current rhythm of the music";
|
||||
|
||||
Reference in New Issue
Block a user