Skip to content

Commit 5d21338

Browse files
committed
fix
1 parent 1087f66 commit 5d21338

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

PegasusExportPlugin/PegasusExportPlugin.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<DebugSymbols>true</DebugSymbols>
1818
<DebugType>full</DebugType>
1919
<Optimize>false</Optimize>
20-
<OutputPath>..\..\..\..\LaunchBox\Plugins\</OutputPath>
20+
<OutputPath>..\..\..\..\..\LaunchBox\Plugins\</OutputPath>
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>

PegasusExportPlugin/frmPegasusExport.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ await Task.Run(() =>
127127
{
128128
foreach (var playlistSetting in playlistsToExport)
129129
{
130-
gamesByPlatform.Add(playlistSetting.Games.OrderBy(game => game.SortTitleOrTitle)
131-
.GroupBy(game => new { Platform= playlistSetting.Name, IsPlaylist = true }).First());
130+
if (playlistSetting.Games.Length > 0)
131+
{
132+
gamesByPlatform.Add(playlistSetting.Games.OrderBy(game => game.SortTitleOrTitle)
133+
.GroupBy(game => new {Platform = playlistSetting.Name, IsPlaylist = true}).First());
134+
}
132135
}
133136
}
134137

0 commit comments

Comments
 (0)