Flashing on taskbar when finished uploading

This makes the icon on the taskbar flash when the uploading is done. It stops when the app window is opened.
HOWEVER, this somehow breaks the icon in the titlebar (all the other icons are fine).