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

Commit 1a4dc08

Browse files
committed
[[ Bug 19941 ]] Use label preference when opening PI
The preference for property inspector labels was renamed but the old mechanism retained for backwards compatibility. The PI was not using the new name to set the old preference on opening. (cherry picked from commit dc7f303)
1 parent b0d0eaf commit 1a4dc08

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

Toolset/palettes/inspector/revinspectortemplate.livecodescript

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on preOpenStack
88
put ideObjectTypesFromObjectList(sSelectedObjects) into sObjectTypes
99
revIDESubscribe "idePropertyChanged",sSelectedObjects
1010
inspectorTitleUpdate
11+
inspectorSetLabelsPreference
1112

1213
# Set the inspector behaviour
1314
dispatch "setAsBehavior" to revIDEInspectorBehavior() with the long id of me
@@ -238,18 +239,21 @@ on editorStoreValue pProperty, pValue
238239
end editorStoreValue
239240

240241
on idePreferenceChanged pPreference
241-
local tValue
242-
put revIDEGetPreference(pPreference) into tValue
243242
switch pPreference
244243
case "idePropertyInspector_labels"
245-
global gRevLanguageNames
246-
put tValue into gRevLanguageNames
247-
set the cLanguageNames of cd 1 of stack "revPreferences" to tValue
244+
inspectorSetLabelsPreference
248245
inspectorChanged
249246
break
250247
end switch
251248
end idePreferenceChanged
252249

250+
command inspectorSetLabelsPreference
251+
local tValue
252+
put revIDEGetPreference("idePropertyInspector_labels") into tValue
253+
global gRevLanguageNames
254+
put tValue into gRevLanguageNames
255+
set the cLanguageNames of cd 1 of stack "revPreferences" to tValue
256+
end inspectorSetLabelsPreference
253257

254258
# Sent by the IDE when a property has changed
255259
on revIDEPropertyChanged

0 commit comments

Comments
 (0)