Skip to content

Commit e6fdc77

Browse files
committed
fix: remove binding error in debug mode (sourcegit-scm#1338)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 53c6fc8 commit e6fdc77

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ViewModels/SubmoduleCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SourceGit.ViewModels
99
{
1010
public class SubmoduleTreeNode : ObservableObject
1111
{
12-
public string FullPath { get; set; } = string.Empty;
12+
public string FullPath { get; private set; } = string.Empty;
1313
public int Depth { get; private set; } = 0;
1414
public Models.Submodule Module { get; private set; } = null;
1515
public List<SubmoduleTreeNode> Children { get; private set; } = [];

src/ViewModels/TagCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public TagTreeNodeToolTip(Models.Tag t)
2323

2424
public class TagTreeNode : ObservableObject
2525
{
26-
public string FullPath { get; set; }
26+
public string FullPath { get; private set; }
2727
public int Depth { get; private set; } = 0;
2828
public Models.Tag Tag { get; private set; } = null;
2929
public TagTreeNodeToolTip ToolTip { get; private set; } = null;

src/Views/SubmodulesView.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
Classes="primary"
109109
Margin="8,0,0,0"
110110
TextTrimming="CharacterEllipsis">
111-
<Run Text="{Binding FullPath, Converter={x:Static c:PathConverters.PureFileName}}"/>
111+
<Run Text="{Binding FullPath, Converter={x:Static c:PathConverters.PureFileName}, Mode=OneWay}"/>
112112
<Run Text="{Binding ChildCounter}" Foreground="{DynamicResource Brush.FG2}"/>
113113
</TextBlock>
114114

0 commit comments

Comments
 (0)