As I understand it, the line in the "AddonName.tok." file is responsible for saving the position of the "icon on the minimap".
Lua Code:
## SavedVariables: TestingAddonSettingsData
And the line in the file
Lua Code:
icon:Register(addonName, minimapIcon, TestingAddonSettingsData) -- Replace MyAddonDB with your saved variables table name
end
Shows what needs to be saved.
Then why doesn’t my “minimap icon” save its position after exiting the game?