Fixed an issue where if no folder was selected the scan button would still be enabled

Fixed an issue where if no folder was selected the scan button would
still be enabled