Browse Source

Contents must return the current value, no matter what value is.

BDisp 3 năm trước cách đây
mục cha
commit
1e70e08996
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  1. 1 5
      Terminal.Gui/Core/Clipboard/Clipboard.cs

+ 1 - 5
Terminal.Gui/Core/Clipboard/Clipboard.cs

@@ -15,11 +15,7 @@ namespace Terminal.Gui {
 			get {
 				try {
 					if (IsSupported) {
-						var clip = ustring.Make (Application.Driver.Clipboard.GetClipboardData ());
-						if (clip != null) {
-							return contents = clip;
-						}
-						return clip;
+						return contents = ustring.Make (Application.Driver.Clipboard.GetClipboardData ());
 					} else {
 						return contents;
 					}