Skip to content

Commit

Permalink
Updated profiles to display the full path.
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsEasyActually committed Dec 7, 2024
1 parent b16a5b4 commit c49bf2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SA-Mod-Manager/Profile/ProfileDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:local="clr-namespace:SAModManager.Profile"
xmlns:dd="urn:gong-wpf-dragdrop"
mc:Ignorable="d"
Title="{StaticResource ManagerProfile.Title}" Height="300" Width="500"
Title="{StaticResource ManagerProfile.Title}" Height="300" Width="700"
WindowStartupLocation="CenterScreen"
Style="{StaticResource SAWindow}">
<Window.Resources>
Expand All @@ -32,7 +32,7 @@
</ListView.ItemContainerStyle>
<ListView.View>
<GridView>
<GridViewColumn Header="{DynamicResource CommonStrings.Name}" Width="250">
<GridViewColumn Header="{DynamicResource CommonStrings.Name}" Width="150">
<GridViewColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
Expand All @@ -41,7 +41,7 @@
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Header="{StaticResource ManagerProfile.Path}" Width="250" DisplayMemberBinding="{Binding Filename}"/>
<GridViewColumn Header="{StaticResource ManagerProfile.Path}" Width="Auto" DisplayMemberBinding="{Binding Filepath}"/>
</GridView>
</ListView.View>
<ListView.ContextMenu>
Expand Down
4 changes: 4 additions & 0 deletions SA-Mod-Manager/Profile/Profiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Threading.Tasks;
using SAModManager.UI;
using System.Collections.ObjectModel;
using System.Text.Json.Serialization;

namespace SAModManager.Profile
{
Expand All @@ -20,6 +21,9 @@ public class ProfileEntry

public string Filename { get; set; } = string.Empty;

[JsonIgnore]
public string Filepath { get { return Path.Combine(App.CurrentGame.modDirectory, ".profiles", Filename); } }

public ProfileEntry(string name, string filename)
{
Name = name;
Expand Down

0 comments on commit c49bf2b

Please sign in to comment.