Skip to content

Commit

Permalink
QuickSearch optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacro59 committed Nov 28, 2021
1 parent f528363 commit 05f1912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Models/QuickSearchItemSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private CommandItem GetCommandItem(GameActivities data, string query)
var AvgFpsAllSession = data.ItemsDetails.AvgFpsAllSession.ToString();
var icon = defaultIconConverter.Convert(data.Icon, null, null, null).ToString();
var dateSession = localDateTimeConverter.Convert(data.LastActivity, null, null, CultureInfo.CurrentCulture).ToString();
var LastSession = dateSession == null ? string.Empty : ResourceProvider.GetString("LOCLastPlayedLabel")
var LastSession = data.LastActivity == null ? string.Empty : ResourceProvider.GetString("LOCLastPlayedLabel")
+ " " + dateSession;

var item = new CommandItem(title, () => PluginDatabase.PlayniteApi.MainView.SelectGame(data.Id), "", null, icon)
Expand Down

0 comments on commit 05f1912

Please sign in to comment.