docs: 更新 containers 和 threading 模块文档
- containers: 更新 string 类的多个方法文档 - threading: 更新 mutex 和 task-group 方法文档
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#include "Core/IEditorContext.h"
|
||||
#include "Core/IProjectManager.h"
|
||||
#include "Core/ISceneManager.h"
|
||||
#include "Core/IUndoManager.h"
|
||||
#include "Core/ISelectionManager.h"
|
||||
#include "Core/AssetItem.h"
|
||||
#include "Utils/SceneEditorUtils.h"
|
||||
#include <imgui.h>
|
||||
@@ -115,7 +117,10 @@ void ProjectPanel::Render() {
|
||||
if (item->isFolder) {
|
||||
manager.NavigateToFolder(item);
|
||||
} else if (SceneEditorUtils::ConfirmSceneSwitch(*m_context)) {
|
||||
m_context->GetSceneManager().LoadScene(item->fullPath);
|
||||
if (m_context->GetSceneManager().LoadScene(item->fullPath)) {
|
||||
m_context->GetSelectionManager().ClearSelection();
|
||||
m_context->GetUndoManager().ClearHistory();
|
||||
}
|
||||
}
|
||||
}
|
||||
ImGui::Separator();
|
||||
@@ -287,7 +292,10 @@ void ProjectPanel::RenderAssetItem(const AssetItemPtr& item, int index) {
|
||||
manager.NavigateToFolder(item);
|
||||
} else if (item->type == "Scene") {
|
||||
if (SceneEditorUtils::ConfirmSceneSwitch(*m_context)) {
|
||||
m_context->GetSceneManager().LoadScene(item->fullPath);
|
||||
if (m_context->GetSceneManager().LoadScene(item->fullPath)) {
|
||||
m_context->GetSelectionManager().ClearSelection();
|
||||
m_context->GetUndoManager().ClearHistory();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user