Skip to content

Commit

Permalink
Add right click support to other columns too
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Nov 2, 2024
1 parent 2846c6e commit dc9f01d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,20 @@ void Editor::ProcessWindow()
{
ProcessSelection(pEntry, &archive);
}
if (ImGui::IsItemClicked(ImGuiMouseButton_Right))
{
pContextEntry = pContextEntry ? nullptr : pEntry;
}
ImGui::TableNextColumn();
;
if (ImGui::Selectable(converter.to_bytes(std::format(L"{} kb ## {}", pEntry->Size*2, pEntry->FileName)).c_str(), archive.EntryList[i].bSelected))
{
ProcessSelection(pEntry, &archive);
}
if (ImGui::IsItemClicked(ImGuiMouseButton_Right))
{
pContextEntry = pContextEntry ? nullptr : pEntry;
}
}
}
}
Expand Down

0 comments on commit dc9f01d

Please sign in to comment.