mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
NK-74 - PR Comments
This commit is contained in:
@@ -179,7 +179,7 @@ namespace Nuake
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
std::string openScene = "Open Scene" + std::string("##") + hoverMenuId;
|
||||
const std::string openScene = "Open Scene" + std::string("##") + hoverMenuId;
|
||||
|
||||
if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(0))
|
||||
{
|
||||
@@ -192,7 +192,7 @@ namespace Nuake
|
||||
if (PopupHelper::DefineDialog(openScene, "Open the scene? \n Changes will not be saved."))
|
||||
{
|
||||
Ref<Scene> scene = Scene::New();
|
||||
std::string projectPath = file->GetAbsolutePath();
|
||||
const std::string projectPath = file->GetAbsolutePath();
|
||||
if (!scene->Deserialize(FileSystem::ReadFile(projectPath, true)))
|
||||
{
|
||||
Logger::Log("Error failed loading scene: " + projectPath, CRITICAL);
|
||||
|
||||
Reference in New Issue
Block a user