Skip to content

Commit 71b16b8

Browse files
committed
Open correct workspace when adding a collection
We want to open the workspace of the active loadout for the game instead of the first workspace of the game.
1 parent 95d6d94 commit 71b16b8

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)