Merge pull request #40 from antopilo/feature/logger-rework
Rework logger
This commit is contained in:
@@ -170,7 +170,7 @@ namespace Nuake
|
||||
{
|
||||
if(FileSystem::RemoveFile(file->GetAbsolutePath()) != 0)
|
||||
{
|
||||
Logger::Log("Failed to remove file: " + file->GetRelativePath(), CRITICAL);
|
||||
Logger::Log("Failed to remove file: " + file->GetRelativePath(), "editor", CRITICAL);
|
||||
}
|
||||
RefreshFileBrowser();
|
||||
}
|
||||
@@ -286,7 +286,7 @@ namespace Nuake
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger::Log("[FileSystem] Cannot create script files that starts with a number.", CRITICAL);
|
||||
Logger::Log("[FileSystem] Cannot create script files that starts with a number.", "editor", CRITICAL);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -434,6 +434,8 @@ namespace Nuake
|
||||
|
||||
ImGui::EndChild();
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
|
||||
ImGui::PopStyleVar();
|
||||
ImGui::PopStyleColor();
|
||||
|
||||
@@ -441,7 +443,7 @@ namespace Nuake
|
||||
|
||||
if (ImGui::Button((std::string(ICON_FA_FOLDER_OPEN)).c_str(), buttonSize))
|
||||
{
|
||||
OS::ShowInFileExplorer(m_CurrentDirectory->fullPath);
|
||||
OS::OpenIn(m_CurrentDirectory->fullPath);
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
Reference in New Issue
Block a user