|
|
@ -33,7 +33,7 @@ export interface ICursorConfig extends IBaseOption
|
|
|
|
|
|
|
|
|
|
|
|
export class UserConfig implements IConfigStore
|
|
|
|
export class UserConfig implements IConfigStore
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly _version = 18;
|
|
|
|
private readonly _version = 19;
|
|
|
|
_renderType: RenderType = RenderType.Wireframe;
|
|
|
|
_renderType: RenderType = RenderType.Wireframe;
|
|
|
|
@observable maxSize: IMaxSizeProps = {
|
|
|
|
@observable maxSize: IMaxSizeProps = {
|
|
|
|
isShow: false,
|
|
|
|
isShow: false,
|
|
|
@ -75,6 +75,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
@observable smalliconmode = false; //小图标模式
|
|
|
|
@observable smalliconmode = false; //小图标模式
|
|
|
|
@observable dimensions: boolean = true; //显示板间尺寸
|
|
|
|
@observable dimensions: boolean = true; //显示板间尺寸
|
|
|
|
@observable switchBackground = true; //切换背景
|
|
|
|
@observable switchBackground = true; //切换背景
|
|
|
|
|
|
|
|
@observable synchronousEnable = false; //同步模式状态
|
|
|
|
@observable autoSaveConfig = {
|
|
|
|
@observable autoSaveConfig = {
|
|
|
|
enable: true,
|
|
|
|
enable: true,
|
|
|
|
time: 1,
|
|
|
|
time: 1,
|
|
|
@ -189,6 +190,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
this.smalliconmode = false;
|
|
|
|
this.smalliconmode = false;
|
|
|
|
this.dimensions = true;
|
|
|
|
this.dimensions = true;
|
|
|
|
this.switchBackground = false;
|
|
|
|
this.switchBackground = false;
|
|
|
|
|
|
|
|
this.synchronousEnable = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SaveConfig()
|
|
|
|
SaveConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -220,7 +222,8 @@ export class UserConfig implements IConfigStore
|
|
|
|
viewSize: toJS(this.viewSize),
|
|
|
|
viewSize: toJS(this.viewSize),
|
|
|
|
smalliconmode: this.smalliconmode,
|
|
|
|
smalliconmode: this.smalliconmode,
|
|
|
|
dimensions: this.dimensions,
|
|
|
|
dimensions: this.dimensions,
|
|
|
|
switchBackground: this.switchBackground
|
|
|
|
switchBackground: this.switchBackground,
|
|
|
|
|
|
|
|
synchronousEnable: this.synchronousEnable,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -306,6 +309,10 @@ export class UserConfig implements IConfigStore
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.switchBackground = config.option.switchBackground;
|
|
|
|
this.switchBackground = config.option.switchBackground;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (config.option.version > 18)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.synchronousEnable = config.option.synchronousEnable;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|