Skip to content

Commit 7aafc47

Browse files
zoltanvbLibretroAdmin
authored andcommitted
Small fixes for scan rework
- set recursive setting to off if content dir points to a file (can happen when scan menu is opened after a playlist refresh) - fix a crash that can also happen when scan menu is opened after playlist refresh
1 parent 929bd26 commit 7aafc47

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

manual_content_scan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,10 @@ bool manual_content_scan_get_task_config(
12911291
return false;
12921292

12931293
if (!path_is_directory(scan_settings.content_dir))
1294+
{
12941295
scan_settings.scan_single_file = true;
1296+
scan_settings.search_recursively = false;
1297+
}
12951298
else
12961299
scan_settings.scan_single_file = false;
12971300

0 commit comments

Comments
 (0)