Skip to content

Commit

Permalink
fixed idpicked title issue when AlwaysShowPosterMode is off
Browse files Browse the repository at this point in the history
  • Loading branch information
DineshSolanki committed Aug 8, 2021
1 parent 59b5891 commit b3a94db
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions FoliCon/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,9 @@ private async System.Threading.Tasks.Task ProcessPosterModeAsync()
{
try
{
if (SearchMode == "Game")
if (isPickedById ? mediaType == "Game" : SearchMode == "Game")
{
var result = isPickedById
? response.Result
: response.Result[0];
var result = response.Result[0];
_igdbObject.ResultPicked(result, fullFolderPath);
}
else
Expand All @@ -358,9 +356,13 @@ private async System.Threading.Tasks.Task ProcessPosterModeAsync()
}
catch (Exception ex)
{
MessageBox.Show(ex.Message == "NoPoster"
? CustomMessageBox.Warning(LangProvider.GetLang("NoPosterFound"), itemTitle)
: CustomMessageBox.Warning(ex.Message, LangProvider.GetLang("ExceptionOccurred")));
if (ex.Message == "NoPoster")
{
MessageBox.Show(CustomMessageBox.Warning(LangProvider.GetLang("NoPosterFound"), itemTitle));
}
#if DEBUG
MessageBox.Show(CustomMessageBox.Warning(ex.Message, LangProvider.GetLang("ExceptionOccurred")));
#endif
isAutoPicked = false;
}

Expand Down

0 comments on commit b3a94db

Please sign in to comment.