Skip to content

Commit e2ed13a

Browse files
authored
Merge pull request #3189 from erri120/fix/3188
Open correct workspace when adding a collection
2 parents 39b2f58 + 71b16b8 commit e2ed13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NexusMods.App.UI/Windows/MainWindowViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public MainWindowViewModel(
182182
if (!loadoutId.HasValue) return Optional<(LoadoutId, WorkspaceId)>.None;
183183

184184
var workspaceViewModel = workspaceController.ChangeOrCreateWorkspaceByContext(
185-
predicate: loadoutContext => IsCorrectLoadoutForGame(loadoutContext.LoadoutId, gameId),
185+
predicate: loadoutContext => loadoutContext.LoadoutId.Equals(loadoutId.Value),
186186
getPageData: () => Optional<PageData>.None,
187187
getWorkspaceContext: () => new LoadoutContext
188188
{

0 commit comments

Comments
 (0)