Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 30b763a

Browse files
committed
Fix initial setting of LCB editor pref
Relocate storage of new text editor preference to immediately after the launch to ensure `it` contains the intended value
1 parent a3185e5 commit 30b763a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Toolset/libraries/revidedeveloperextensionlibrary.livecodescript

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,14 +598,15 @@ on revIDEDeveloperExtensionEditScript pFolder
598598
if it is not empty then
599599
launch tFile with it
600600
put the result into tResult
601+
if tResult is empty then
602+
# AL-2015-04-01: [[ Bug 15130 ]] If the new text editor launch was successful, set the preference
603+
revIDESetPreference "LCB_textEditor", it
604+
end if
601605
end if
602606
end if
603607

604608
if tResult is not empty then
605609
__revIDEDeveloperExtensionSendError "Could not open" && tFile & ":" && tResult
606-
else if it is not empty then
607-
# AL-2015-04-01: [[ Bug 15130 ]] If the new text editor launch was successful, set the preference
608-
revIDESetPreference "LCB_textEditor", it
609610
end if
610611
end revIDEDeveloperExtensionEditScript
611612

0 commit comments

Comments
 (0)