保存一下
This commit is contained in:
@@ -9,10 +9,10 @@ export interface IProcessManage {
|
||||
/** 所有进程信息 */
|
||||
get processInfos(): IProcessInfo[];
|
||||
/**
|
||||
* 添加进程
|
||||
* 注册进程
|
||||
* @param process 进程
|
||||
*/
|
||||
addProcess(process: IProcess): void;
|
||||
registerProcess(process: IProcess): void;
|
||||
/**
|
||||
* 通过进程id查找进程
|
||||
* @param id 进程id
|
||||
|
||||
@@ -30,7 +30,7 @@ export default class ProcessImpl implements IProcess {
|
||||
|
||||
const startName = info.startName;
|
||||
|
||||
XSystem.instance.processManage.addProcess(this);
|
||||
XSystem.instance.processManage.registerProcess(this);
|
||||
// 通过设置 isJustProcess 为 true,则不会创建窗体
|
||||
if (!info.isJustProcess) {
|
||||
this.openWindowForm(startName)
|
||||
|
||||
@@ -36,7 +36,7 @@ export default class ProcessManageImpl implements IProcessManage {
|
||||
}
|
||||
|
||||
// 添加进程
|
||||
public addProcess(process: ProcessImpl) {
|
||||
public registerProcess(process: ProcessImpl) {
|
||||
this._processPool.set(process.id, process);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user