|
|
|
@ -29,7 +29,7 @@ export interface ICursorConfig extends IBaseOption
|
|
|
|
|
|
|
|
|
|
export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
private readonly _version = 6;
|
|
|
|
|
private readonly _version = 7;
|
|
|
|
|
_renderType: RenderType = RenderType.Wireframe;
|
|
|
|
|
@observable maxSize: IMaxSizeProps = {
|
|
|
|
|
height: 2440,
|
|
|
|
@ -65,6 +65,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
time: 1,
|
|
|
|
|
};
|
|
|
|
|
@observable showLines = false;
|
|
|
|
|
@observable keepConfig = false;
|
|
|
|
|
constructor()
|
|
|
|
|
{
|
|
|
|
|
this.Init();
|
|
|
|
@ -132,6 +133,7 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
cursorSize: toJS(this.cursorSize),
|
|
|
|
|
autoSaveConfig: toJS(this.autoSaveConfig),
|
|
|
|
|
showLines: this.showLines,
|
|
|
|
|
keepConfig: this.keepConfig,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
@ -164,6 +166,10 @@ export class UserConfig implements IConfigStore
|
|
|
|
|
{
|
|
|
|
|
this.showLines = config.option.showLines;
|
|
|
|
|
}
|
|
|
|
|
if (config.option.version > 6)
|
|
|
|
|
{
|
|
|
|
|
this.keepConfig = config.option.keepConfig;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|