mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Open Folder in File Explorer
This commit is contained in:
@@ -176,15 +176,23 @@ namespace Nuake
|
||||
|
||||
if (ImGui::BeginPopup(hoverMenuId.c_str()))
|
||||
{
|
||||
if (ImGui::MenuItem("Show in File Explorer"))
|
||||
{
|
||||
OS::OpenInFileExplorer(file->GetAbsolutePath());
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
if (ImGui::MenuItem("Delete"))
|
||||
{
|
||||
if(FileSystem::RemoveFile(file->GetAbsolutePath()) != 0)
|
||||
{
|
||||
Logger::Log("Failed to remove file: " + file->GetAbsolutePath(), CRITICAL);
|
||||
Logger::Log("Failed to remove file: " + file->GetRelativePath(), CRITICAL);
|
||||
}
|
||||
RefreshFileBrowser();
|
||||
}
|
||||
|
||||
ImGui::EndPopup();
|
||||
RefreshFileBrowser();
|
||||
}
|
||||
|
||||
ImGui::Text(file->GetName().c_str());
|
||||
|
||||
Reference in New Issue
Block a user