|
|
@ -344,7 +344,7 @@ export class UserConfigStore extends Singleton
|
|
|
|
return configs;
|
|
|
|
return configs;
|
|
|
|
let confNames = [...Object.keys(configs)];
|
|
|
|
let confNames = [...Object.keys(configs)];
|
|
|
|
let curName = userConfig.userConfigName[type];
|
|
|
|
let curName = userConfig.userConfigName[type];
|
|
|
|
if (!curName)
|
|
|
|
if (!curName || !confNames.includes(curName))
|
|
|
|
curName = confNames[0];
|
|
|
|
curName = confNames[0];
|
|
|
|
return configs[curName];
|
|
|
|
return configs[curName];
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -605,6 +605,7 @@ export class UserConfigStore extends Singleton
|
|
|
|
await this.UpdateBoardOption(newName, type, store);
|
|
|
|
await this.UpdateBoardOption(newName, type, store);
|
|
|
|
userConfig.userConfigName[type] = newName;
|
|
|
|
userConfig.userConfigName[type] = newName;
|
|
|
|
this.UpdateUserConfig(type, configs[newName]);
|
|
|
|
this.UpdateUserConfig(type, configs[newName]);
|
|
|
|
|
|
|
|
await this.UploadUserConfigNames(dbStore);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|