Skip to content

Commit 572a489

Browse files
gfraiteurclaude
andcommitted
Change Working Dir from TextBox to TextBlock in approval dialog
Simplifies the UI by using a read-only TextBlock instead of a TextBox for the working directory field, matching other display-only fields. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2bd68ea commit 572a489

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/PostSharp.Engineering.McpApprovalServer/Views/ApprovalWindow.xaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,10 @@
7777
MinHeight="24" />
7878

7979
<TextBlock Grid.Row="1" Grid.Column="0" Text="Working Dir:" FontWeight="Bold" Margin="0,5" />
80-
<TextBox Grid.Row="1" Grid.Column="1"
81-
Text="{Binding WorkingDirectory, Mode=OneWay}"
82-
IsReadOnly="True"
83-
FontFamily="Consolas"
84-
Background="#F5F5F5"
85-
Margin="0,5" />
80+
<TextBlock Grid.Row="1" Grid.Column="1"
81+
Text="{Binding WorkingDirectory}"
82+
FontFamily="Consolas"
83+
Margin="0,5" />
8684

8785
<TextBlock Grid.Row="2" Grid.Column="0" Text="Git Branch:" FontWeight="Bold" Margin="0,5" />
8886
<TextBlock Grid.Row="2" Grid.Column="1"

0 commit comments

Comments
 (0)