Browse Source

Merge pull request #1366 from BDisp/colorscheme-setter

Fixes #1078. ColorScheme setter now calls SetNeedsDisplay.
Charlie Kindel 4 năm trước cách đây
mục cha
commit
91c3294491
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      Terminal.Gui/Core/View.cs

+ 4 - 1
Terminal.Gui/Core/View.cs

@@ -1282,7 +1282,10 @@ namespace Terminal.Gui {
 				return colorScheme;
 			}
 			set {
-				colorScheme = value;
+				if (colorScheme != value) {
+					colorScheme = value;
+					SetNeedsDisplay ();
+				}
 			}
 		}