mirror of https://gitee.com/cf-fz/WebCAD.git
!2324 配置:在用户配置中,增加了可以自动修改板的开门方向的设置
parent
d688dac512
commit
2b12307cf3
@ -0,0 +1,24 @@
|
||||
import { Intent } from "@blueprintjs/core";
|
||||
import { Command } from "../Editor/CommandMachine";
|
||||
import { userConfig } from "../Editor/UserConfig";
|
||||
import { BoardModalType } from "../UI/Components/Board/BoardModalType";
|
||||
import { AppToaster } from "../UI/Components/Toaster";
|
||||
import { userConfigStore } from "../UI/Store/UserConfigStore";
|
||||
|
||||
export class ForceOpendirOrNameChange implements Command
|
||||
{
|
||||
async exec()
|
||||
{
|
||||
userConfig.forceOpendirOrNameChange = !userConfig.forceOpendirOrNameChange;
|
||||
await userConfigStore.SaveConfig(BoardModalType.UserConfig, userConfig, { toaster: false });
|
||||
|
||||
if (AppToaster)
|
||||
AppToaster.clear();
|
||||
|
||||
AppToaster.show({
|
||||
message: `${userConfig.forceOpendirOrNameChange ? "开启" : "关闭"}:在双击修改板件属性界面修改门板开门方向时,自动修改对应的板名称(或修改门板名称时,自动修改对应的开门方向)`,
|
||||
timeout: 5000,
|
||||
intent: Intent.SUCCESS,
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in new issue