Skip to content

Commit

Permalink
Clipboard race condition "fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmaslen committed Aug 29, 2023
1 parent fdb0369 commit 84084ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BlueprintExplorer/BlueprintControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ protected override void OnMouseClick(MouseEventArgs e)

if (string.IsNullOrWhiteSpace(value))
return;
Clipboard.SetText(value);
Clipboard.SetDataObject(value, copy: true, retryTimes: 10, retryDelay: 100);
int displayAt = elem.PrimaryRow - 1;
if (elem.PrimaryRow < 3)
displayAt = elem.PrimaryRow + 1;
Expand Down
2 changes: 1 addition & 1 deletion BlueprintExplorer/BlueprintViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public BlueprintViewer()

var template = availableTemplates[templatesList.SelectedIndex];
var result = TemplateRunner.Execute(template.Value, view.Blueprint as BlueprintHandle);
Clipboard.SetText(result);
Clipboard.SetDataObject(result, copy: true, retryTimes: 10, retryDelay: 100);
};

if (BubblePrints.Settings.ShareBlueprintFilter)
Expand Down

0 comments on commit 84084ff

Please sign in to comment.