Parcourir la source

tools: send Device.frame() after console commands

Daniele Bartolini il y a 4 ans
Parent
commit
1c26c9036d
2 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 4 0
      docs/changelog.rst
  2. 6 0
      tools/widgets/console_view.vala

+ 4 - 0
docs/changelog.rst

@@ -5,6 +5,10 @@ Changelog
 ------
 *DD MMM YYYY*
 
+**Tools**
+
+* Fixed Engine View not redrawing when a command was sent from the Console.
+
 0.43.0
 ------
 *17 Apr 2021*

+ 6 - 0
tools/widgets/console_view.vala

@@ -173,13 +173,19 @@ public class ConsoleView : Gtk.Box
 				if (args.length > 0)
 				{
 					if (client != null)
+					{
 						client.send(DeviceApi.command(args));
+						client.send(DeviceApi.frame());
+					}
 				}
 			}
 			else
 			{
 				if (client != null)
+				{
 					client.send_script(text);
+					client.send(DeviceApi.frame());
+				}
 			}
 		}