Skip to content

Commit

Permalink
Update LoadoutView page Title names for collections
Browse files Browse the repository at this point in the history
  • Loading branch information
Al12rs committed Sep 12, 2024
1 parent 2f919fa commit 5360a8d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions src/NexusMods.App.UI/Pages/LoadoutPage/LoadoutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,22 @@ public LoadoutViewModel(IWindowManager windowManager, IServiceProvider servicePr
};

Adapter = new LoadoutTreeDataGridAdapter(serviceProvider, ticker, loadoutFilter);

_connection = serviceProvider.GetRequiredService<IConnection>();

TabTitle = Language.LoadoutViewPageTitle;
TabIcon = IconValues.Collections;

_connection = serviceProvider.GetRequiredService<IConnection>();
if (collectionGroupId.HasValue)
{
var collectionGroup = LoadoutItem.Load(_connection.Db, collectionGroupId.Value);
TabTitle = collectionGroup.Name;
TabIcon = IconValues.Collections;
}
else
{
TabTitle = Language.LoadoutViewPageTitle;
TabIcon = IconValues.Mods;
}


SwitchViewCommand = new ReactiveCommand<Unit>(_ => { Adapter.ViewHierarchical.Value = !Adapter.ViewHierarchical.Value; });
ticker.Connect();
Expand Down
2 changes: 1 addition & 1 deletion src/NexusMods.App.UI/Resources/Language.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/NexusMods.App.UI/Resources/Language.resx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
<value>Home</value>
</data>
<data name="LoadoutViewPageTitle" xml:space="preserve">
<value>My Mods</value>
<value>Installed Mods</value>
</data>
<data name="Downloads_WorkspaceTitle" xml:space="preserve">
<value>Downloads</value>
Expand Down

0 comments on commit 5360a8d

Please sign in to comment.