Browse Source

Merge pull request #1708 from BDisp/application-refresh-fix

Avoid UpdateScreen running twice on Application.Refresh because Driver.Refresh already do.
Tig Kindel 3 năm trước cách đây
mục cha
commit
28396f1ed9
1 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 7 7
      Terminal.Gui/Core/Application.cs

+ 7 - 7
Terminal.Gui/Core/Application.cs

@@ -315,12 +315,12 @@ namespace Terminal.Gui {
 			}
 			}
 
 
 			// Used only for start debugging on Unix.
 			// Used only for start debugging on Unix.
-			//#if DEBUG
-			//			while (!System.Diagnostics.Debugger.IsAttached) {
-			//				System.Threading.Thread.Sleep (100);
-			//			}
-			//			System.Diagnostics.Debugger.Break ();
-			//#endif
+//#if DEBUG
+//			while (!System.Diagnostics.Debugger.IsAttached) {
+//				System.Threading.Thread.Sleep (100);
+//			}
+//			System.Diagnostics.Debugger.Break ();
+//#endif
 
 
 			// Reset all class variables (Application is a singleton).
 			// Reset all class variables (Application is a singleton).
 			ResetState ();
 			ResetState ();
@@ -914,7 +914,7 @@ namespace Terminal.Gui {
 		/// </summary>
 		/// </summary>
 		public static void Refresh ()
 		public static void Refresh ()
 		{
 		{
-			Driver.UpdateScreen ();
+			Driver.UpdateOffScreen ();
 			View last = null;
 			View last = null;
 			foreach (var v in toplevels.Reverse ()) {
 			foreach (var v in toplevels.Reverse ()) {
 				if (v.Visible) {
 				if (v.Visible) {