loadPreferences
Definition
-- @/lua/ge/extensions/editor/main.lua:74
local function loadPreferences()
M.preferencesRegistry:loadPreferences(editorPreferencesPath)
M.setPreference = setPreference
M.getPreference = getPreference
M.preferencesRegistry:migratePreferences()
end
Callers
@/lua/ge/extensions/editor/api/preferencesRegistry.lua
function C:loadPreferences(filename)
local fname = filename or DefaultPreferencesPath
@/lua/ge/extensions/editor/main.lua
local function loadPreferences()
M.preferencesRegistry:loadPreferences(editorPreferencesPath)
M.setPreference = setPreference
-- reload them again to have the new loaded extension access them too
editor.loadPreferences()
editor.updatePreferencePages()
-- reload them again to have the new loaded extension access them too
editor.loadPreferences()
editor.updatePreferencePages()
-- load preference values so they will be available in the onEditorInitialized for extensions
M.loadPreferences()