Skip to content

Commit

Permalink
Simplify branching structure of clipboard construction
Browse files Browse the repository at this point in the history
  • Loading branch information
tznind committed Dec 21, 2024
1 parent 7dacacc commit c6e96dc
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Terminal.Gui/ConsoleDrivers/V2/ConsoleDriverFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,13 @@ private void CreateClipboard ()
{
Clipboard = new MacOSXClipboard ();
}
else if (CursesDriver.Is_WSL_Platform ())
{
Clipboard = new WSLClipboard ();
}
else
{
if (CursesDriver.Is_WSL_Platform ())
{
Clipboard = new WSLClipboard ();
}
else
{
Clipboard = new FakeDriver.FakeClipboard ();
}
Clipboard = new FakeDriver.FakeClipboard ();
}
}

Expand Down

0 comments on commit c6e96dc

Please sign in to comment.