Reset source if ADF is empty instead of after changing scan mode
Replaced inline option name strings with constants