updated
This commit is contained in:
@@ -130,10 +130,16 @@ void FFLESHEditor::InitFLESHEditor(const EToolkitMode::Type Mode, const TSharedP
|
|||||||
// Create the command list
|
// Create the command list
|
||||||
CreateCommandList();
|
CreateCommandList();
|
||||||
|
|
||||||
// Register tab spawners
|
// 注册标签生成器
|
||||||
RegisterTabSpawners(GetTabManager().ToSharedRef());
|
TSharedRef<FTabManager> TabManagerRef = GetTabManager().ToSharedRef();
|
||||||
|
|
||||||
// Extend toolbar
|
// 先取消注册任何可能存在的标签生成器,避免冲突
|
||||||
|
UnregisterTabSpawners(TabManagerRef);
|
||||||
|
|
||||||
|
// 然后注册我们的标签生成器
|
||||||
|
RegisterTabSpawners(TabManagerRef);
|
||||||
|
|
||||||
|
// 扩展工具栏
|
||||||
ExtendToolbar();
|
ExtendToolbar();
|
||||||
|
|
||||||
// Set initialization flag
|
// Set initialization flag
|
||||||
|
Reference in New Issue
Block a user