- Sort rows in the database by date

- Add fast buttons to add/remove all channels
This commit is contained in:
Infi
2026-05-01 02:10:10 +02:00
parent 33c922aaf7
commit 7dc34c6013
3 changed files with 50 additions and 0 deletions
+24
View File
@@ -550,6 +550,30 @@ internal static class ImGuiUtil
foreach (var (header, types) in ChatTypeExt.SortOrder)
{
using var pushedId = ImRaii.PushId(header);
if (ImGuiComponents.IconButton(FontAwesomeIcon.Check))
{
foreach (var type in types)
chatCodes.TryAdd(type, (ChatSourceExt.All, ChatSourceExt.All));
}
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Select all");
ImGui.SameLine();
if (ImGuiComponents.IconButton(FontAwesomeIcon.Times))
{
foreach (var type in types)
chatCodes.Remove(type);
}
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Unselect all");
ImGui.SameLine();
using var headerNode = ImRaii.TreeNode(header);
if (!headerNode.Success)
continue;