Add context to copy the full file path from redirections.

This commit is contained in:
Ottermandias 2025-04-10 00:02:36 +02:00
parent 0ec6a17ac7
commit dc336569ff

View file

@ -210,6 +210,9 @@ public partial class ModEditWindow
if (!context) if (!context)
return; return;
if (ImUtf8.Selectable("Copy Full File Path"))
ImUtf8.SetClipboardText(registry.File.FullName);
using (ImRaii.Disabled(registry.CurrentUsage == 0)) using (ImRaii.Disabled(registry.CurrentUsage == 0))
{ {
if (ImUtf8.Selectable("Copy Game Paths"u8)) if (ImUtf8.Selectable("Copy Game Paths"u8))
@ -244,10 +247,8 @@ public partial class ModEditWindow
using (ImRaii.Disabled(_cutPaths.Count == 0)) using (ImRaii.Disabled(_cutPaths.Count == 0))
{ {
if (ImUtf8.Selectable("Paste Game Paths"u8)) if (ImUtf8.Selectable("Paste Game Paths"u8))
{
foreach (var path in _cutPaths) foreach (var path in _cutPaths)
_editor.FileEditor.SetGamePath(_editor.Option!, i, -1, path); _editor.FileEditor.SetGamePath(_editor.Option!, i, -1, path);
}
} }
} }