[TabManager] Fix, update icons of pinned tabs when their pin state changes.
[TabManager] Now MainApplication::getWindow() returns current active or last activated window.