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

Commit 91f0466

Browse files
Merge pull request #1827 from montegoulding/profilerprop
[[ Editions ]] Add script_profiler property
2 parents ad42c9c + 49d38e9 commit 91f0466

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Toolset/home.livecodescript

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,8 @@ function revEnvironmentEditionProperty pProp, pEdition
18961896
case "autocomplete"
18971897
case "autocomplete_pro"
18981898
return false
1899+
case "script_profiler"
1900+
return false
18991901
end switch
19001902
break
19011903
case "communityplus"
@@ -1932,6 +1934,8 @@ function revEnvironmentEditionProperty pProp, pEdition
19321934
return true
19331935
case "autocomplete_pro"
19341936
return false
1937+
case "script_profiler"
1938+
return false
19351939
end switch
19361940
break
19371941
case "indy"
@@ -1972,6 +1976,8 @@ function revEnvironmentEditionProperty pProp, pEdition
19721976
case "autocomplete"
19731977
case "autocomplete_pro"
19741978
return true
1979+
case "script_profiler"
1980+
return false
19751981
end switch
19761982
break
19771983
case "business"
@@ -2008,6 +2014,8 @@ function revEnvironmentEditionProperty pProp, pEdition
20082014
case "autocomplete"
20092015
case "autocomplete_pro"
20102016
return true
2017+
case "script_profiler"
2018+
return true
20112019
end switch
20122020
break
20132021
end switch

Toolset/palettes/menubar/revmenubar.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,7 @@ private function revMenubarDevelopmentMenu pContext
19671967
put revMenubarSimulatorSubmenu() after tDevelopment
19681968
put "-" & return after tDevelopment
19691969

1970-
if there is a stack "com.livecode.library.scriptprofiler" then
1970+
if revEnvironmentEditionProperty("script_profiler") then
19711971
local tProfiler
19721972
put the long id of stack "com.livecode.library.scriptprofiler" into tProfiler
19731973
if tProfiler is among the lines of the backScripts then

0 commit comments

Comments
 (0)