Browse Source

Merge pull request #1366 from BDisp/colorscheme-setter

Fixes #1078. ColorScheme setter now calls SetNeedsDisplay.
Charlie Kindel 4 years ago
parent
commit
91c3294491
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Terminal.Gui/Core/View.cs

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

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