Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: don't cleanup icon files on unregister
In previous versions, icons files were removed from the web directory when they were unregistered via `IconRegistry.unregister()`. Icons are unregistered when plugins are shut down or removed. When an external web server is in use, map tiles remain available to clients after the game server has stopped—but registered icons do not. The removed icons result in ugly "broken link" images on clients. Instead of removing icon files immediately when they are unregistered, defer the removal until squaremap's next startup. Old icon files will be overwritten with new ones if necessary. See also: <#114>
- Loading branch information