Skip to content

Commit

Permalink
Use the overloading mechanism instead of the optional parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
DineshSolanki committed Dec 21, 2023
1 parent 758fe70 commit 60a9dcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FoliCon/Models/Data/PickedListItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public string FolderName
set => SetProperty(ref _folderName, value);
}

public PickedListItem(string title, string year, string rating, string folder = "", string folderName = "", string poster= "")
public PickedListItem(string title, string year, string rating, string folder, string folderName, string poster)
: base(title, year, rating, "", poster, folder)
{
FolderName = folderName;
}
}
}
6 changes: 5 additions & 1 deletion FoliCon/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,11 @@ private void ProcessProfessionalMode()
StatusBarProperties.AppStatus = "Searching";
_dialogService.ShowProSearchResult(SelectedFolder, Fnames, _pickedListDataTable, _imgDownloadList,
_dArtObject, _ => { });
if (_pickedListDataTable.Count <= 0) return;
if (_pickedListDataTable.Count <= 0)
{
return;
}

Logger.Debug("ProcessProfessionalMode: found {_pickedListDataTable.Rows.Count} results, adding to final list");
FinalListViewData.Data.AddRange(_pickedListDataTable);
StatusBarProperties.ProcessedFolder = _pickedListDataTable.Count;
Expand Down

0 comments on commit 60a9dcd

Please sign in to comment.