Don't clear clipboard when auto paste disabled

This commit is contained in:
Stone_Red
2024-06-27 21:28:05 +02:00
parent 2fb46a6e33
commit 816c55e4b5
@@ -123,7 +123,10 @@ public class ClipCmdCommandHandler(Window window)
await Output("Command not found!");
}
await clipboard.ClearAsync();
if (Settings.Current.Mode != ClipCmdMode.Clipboard && !Settings.Current.AutoPaste)
{
await clipboard.ClearAsync();
}
lastText = string.Empty;
}