Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Oct 8, 2024
1 parent a7db8ab commit c5cacd9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions JL.Windows/Utilities/WindowsUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,6 @@ public static void CopyTextToClipboard(string? text)
}

bool captureTextFromClipboard = CoreConfigManager.CaptureTextFromClipboard;
CoreConfigManager.CaptureTextFromClipboard = false;
if (captureTextFromClipboard)
{
WinApi.UnsubscribeFromClipboardChanged(MainWindow.Instance.WindowHandle);
Expand All @@ -639,7 +638,6 @@ public static void CopyTextToClipboard(string? text)
}
} while (retry);

CoreConfigManager.CaptureTextFromClipboard = captureTextFromClipboard;
if (captureTextFromClipboard)
{
WinApi.SubscribeToClipboardChanged(MainWindow.Instance.WindowHandle);
Expand Down

0 comments on commit c5cacd9

Please sign in to comment.