From bda6cf08701c48f8bf026a742bb4e15eec731e0b Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 13 Mar 2017 13:30:06 +0000 Subject: [PATCH] Fill out default script editor contents after initialising python --- renderdocui/Windows/Dialogs/PythonShell.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdocui/Windows/Dialogs/PythonShell.cs b/renderdocui/Windows/Dialogs/PythonShell.cs index a7e63071a..d80741135 100644 --- a/renderdocui/Windows/Dialogs/PythonShell.cs +++ b/renderdocui/Windows/Dialogs/PythonShell.cs @@ -63,8 +63,6 @@ namespace renderdocui.Windows.Dialogs scriptEditor.KeyDown += new KeyEventHandler(scriptEditor_KeyDown); scriptEditor.TextChanged += new EventHandler(scriptEditor_TextChanged); - newScript.PerformClick(); - scriptEditor.Scrolling.HorizontalWidth = 1; const uint SCI_SETSCROLLWIDTHTRACKING = 2516; @@ -78,6 +76,8 @@ namespace renderdocui.Windows.Dialogs mode_Changed(shellMode, null); + newScript.PerformClick(); + clearCmd_Click(null, null); EnableButtons(true);