mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
cmdpal: Re-re-enable the clipboard history (#40471)
_⚠️ targets #40445_ This time, for real This really really re-enables the clipboard history command. With the foreground fixes from #40445, we can properly dismiss ourself to give FG to the next app window. This actually lets us paste correctly. I took the liberty of localizing the strings and fixing up the icons while I was at it. Closes #38344
This commit is contained in:
@@ -59,10 +59,10 @@ internal static class ClipboardHelper
|
||||
output.SetText(text);
|
||||
try
|
||||
{
|
||||
// Clipboard.SetContentWithOptions(output, null);
|
||||
ClipboardThreadQueue.EnqueueTask(() =>
|
||||
{
|
||||
Clipboard.SetContent(output);
|
||||
|
||||
Flush();
|
||||
ExtensionHost.LogMessage(new LogMessage() { Message = "Copied text to clipboard" });
|
||||
});
|
||||
@@ -87,7 +87,7 @@ internal static class ClipboardHelper
|
||||
{
|
||||
try
|
||||
{
|
||||
Task.Run(Clipboard.Flush).Wait();
|
||||
Clipboard.Flush();
|
||||
return;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user