you could actually just make this a direct binding now it's a property

property bool refreshInProgress: emailAgent. synchronizing