Text & code editor: Call the TextEditor.Reset() method when loading the contents, not to raise the Change event.

[DEVELOPMENT ENVIRONMENT]
* BUG: Text & code editor: Call the TextEditor.Reset() method when loading the contents, not to raise the Change event.
This commit is contained in:
Benoît Minisini 2022-08-22 14:29:35 +02:00
parent d1fabcfe38
commit dae0a9abe6
2 changed files with 4 additions and 7 deletions

View file

@ -41,7 +41,6 @@ Static Private $sName As String
Private $hEditor As TextEditor
Private $bModify As Boolean
Private $bIgnoreNextChange As Boolean
Private $bToolbar As Boolean
Private $iLastLine As Integer
@ -374,10 +373,6 @@ End
Public Sub Editors_Change()
If $bIgnoreNextChange Then
$bIgnoreNextChange = False
Return
Endif
Modify
End
@ -2274,8 +2269,6 @@ End
Public Sub Reload()
$bIgnoreNextChange = True
edtEditor.Load(Path, True)
$hBookmark.Load()
Breakpoints.Load(Me)
@ -2288,6 +2281,8 @@ Public Sub Reload()
UpdateDiffAction
$hEditor.Reset
End
Public Sub LoadFile() As Boolean

View file

@ -732,6 +732,8 @@ Public Sub Reload()
UpdateDiffAction
$hEditor.Reset
End
Public Sub mnuReload_Click()