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

Commit 627d437

Browse files
Merge pull request #1689 from livecode/bugfix-backdrop_default
[[ Bug 20117 ]] Fix backdrop preference setting
2 parents 57c800e + 0c3c9e3 commit 627d437

3 files changed

Lines changed: 4 additions & 18 deletions

File tree

Toolset/home.livecodescript

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ command revInternal__ResetPreferences
745745
put "22" into tPropsArray["cMenuHeight"]
746746
put "1067,251,1882,827" into tPropsArray["cRevDocsRect"]
747747
put "Gray88" into tPropsArray["cBackDropColor"]
748+
put "Gray88" into tPropsArray["cBackdrop"]
748749
put "false" into tPropsArray["cREVMsgShowUIFrontScripts"]
749750
put "false" into tPropsArray["revstack"]
750751
put "100" into tPropsArray["cMacOSProgressScrollbarWidth"]
@@ -802,7 +803,6 @@ command revInternal__ResetPreferences
802803
put "selectedObject" into tPropsArray["cREVMsgIntelligenceObject"]
803804
put "false" into tPropsArray["cSEHideErrors"]
804805
put "56" into tPropsArray["cFieldHeight"]
805-
put "none" into tPropsArray["cBackDrop"]
806806
put "300" into tPropsArray["cREVUnmaximizedScriptHeight"]
807807
put "13,125" into tPropsArray["cToolsTopLeft"]
808808
put "--" into tPropsArray["cCommentCharacter"]
@@ -1394,18 +1394,6 @@ end revInternal__InitialiseDefaults
13941394
command revInternal__InitialiseOptions
13951395
revInternal__Log "Enter", "Options Initialisation"
13961396

1397-
if the StartCenterClassic of stack "revPreferences" is not "true" then
1398-
set the cBackDrop of stack "revPreferences" to "Gray88"
1399-
set the cBackDropColor of stack "revPreferences" to "Gray88"
1400-
end if
1401-
local tBackdrop
1402-
put the cBackDrop of stack "revPreferences" into tBackdrop
1403-
if tBackdrop is "none" then
1404-
set the backdrop to tBackdrop
1405-
else
1406-
set the backdrop to the cBackDropColor of stack "revPreferences"
1407-
end if
1408-
14091397
set the selectGroupedControls to the cSelectGrouped of stack "revPreferences"
14101398
set the tooltipDelay to the cREVToolTipDelay of stack "revPreferences"
14111399
set the grid to the cGrid of stack "revPreferences"
@@ -1678,9 +1666,9 @@ command revInternal__InitialiseFinalSteps
16781666
revInternal__Log "Message", "Setting up verbose debugging"
16791667
send "revVerboseDebug" && the cVerboseDebug of stack "revPreferences" to stack "revFrontScriptLibrary"
16801668

1681-
if the cBackDrop of stack "revPreferences" is not "none" and the cBackDrop of stack "revPreferences" is not empty then
1669+
if the cBackDrop of stack "revPreferences" is not "none" then
16821670
revInternal__Log "Message", "Setting up backdrop"
1683-
set the backdrop to the cBackDrop of stack "revPreferences"
1671+
set the backdrop to the cBackDropColor of stack "revPreferences"
16841672
end if
16851673

16861674
revInternal__Log "Message", "Closing Splash"

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8728,9 +8728,6 @@ on revIDEToggle pProperty
87288728
break
87298729
case "Backdrop"
87308730
if the backDrop is "none" then
8731-
if revIDEGetPreference("cBackDropColor") is empty then
8732-
revIDESetPreference "cBackDropColor", "Gray88"
8733-
end if
87348731
set the backDrop to revIDEGetPreference("cBackDropColor")
87358732
revIDESetPreference "cBackDrop", the backDrop
87368733
else

notes/bugfix-20117.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Don't override existing users' backdrop setting

0 commit comments

Comments
 (0)