Because preferences change when you do lots of things like change font size, and because working out the path is quite costly, only do it the first time the plugin is loaded, or if the additional_path_items preference changes.
This is a massive performance improvement on my machine. Specifically for the setting fonts case, it could mean it took seconds to change font size.
Because preferences change when you do lots of things like change font size, and because working out the path is quite costly, only do it the first time the plugin is loaded, or if the additional_path_items preference changes.
This is a massive performance improvement on my machine. Specifically for the setting fonts case, it could mean it took seconds to change font size.