Skip to content

Commit

Permalink
Fixed clipboard issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFeline committed Jul 21, 2024
1 parent 61151e9 commit 31f407b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Models/Entry.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using System.Diagnostics;
using System.Text;

namespace ToNSaveManager.Models
Expand Down Expand Up @@ -116,6 +117,9 @@ public string GetTooltip(bool showPlayers, bool showTerrors, bool showNote = tru

public void CopyToClipboard()
{
#if DEBUG
Debug.WriteLine("COPYING TO CLIPBOARD");
#endif
// Windows 11 please... :[
// Clipboard.Clear();
Clipboard.SetDataObject(Content, false, 4, 200);
Expand Down
2 changes: 1 addition & 1 deletion Windows/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ private void FirstImport()
if (first != null) SetRecent(first);
}

CopyRecent();
// CopyRecent();
}

private void AddCustomEntry(Entry entry, History? collection)
Expand Down

0 comments on commit 31f407b

Please sign in to comment.