Once you click restore, the program is either restored or, your warned that it’s infected.
If you don’t get the infection warning, then it’s been restored even though a copy remains in the virus chest.
Try rebooting and then see if you’re program now works.

If you use the removal tools, then all of avast will be removed that includes thew virus chest.