func writeStashIcon(faviconProvider FaviconProvider) {
	c := config.GetInstance()
	if !c.IsNewSystem() {
		iconPath := path.Join(c.GetConfigPath(), "icon.png")
		err := ioutil.WriteFile(iconPath, faviconProvider.GetFaviconPng(), 0644)
		if err != nil {
			logger.Errorf("Couldn't write icon file: %s", err.Error())
		}
	}
}
// writeStashIcon writes the current stash logo to config/icon.png
writeStashIcon writes the current stash logo to config/icon.png
// writeStashIcon writes the current stash logo to config / icon . png
func writeStashIcon(faviconProvider FaviconProvider) {
	c := config.GetInstance()
	if !c.IsNewSystem() {
		iconPath := path.Join(c.GetConfigPath(), "icon.png")
		err := ioutil.WriteFile(iconPath, faviconProvider.GetFaviconPng(), 0644)
		if err != nil {
			logger.Errorf("Couldn't write icon file: %s", err.Error())
		}
	}
}
func writeStashIcon ( faviconProvider FaviconProvider ) { c := config . GetInstance ( ) if ! c . IsNewSystem ( ) { iconPath := path . Join ( c . GetConfigPath ( ) , " " ) err := ioutil . WriteFile ( iconPath , faviconProvider . GetFaviconPng ( ) , 0644 ) if err != nil { logger . Errorf ( " " , err . Error ( ) ) } } }
writeStashIcon writes the current stash logo to config/icon.png
writeStashIcon writes the current stash logo to config / icon . png