Skip to content

Commit

Permalink
git-gui: Only allow Refresh in diff context menu when we have a diff.
Browse files Browse the repository at this point in the history
There is no reason to attempt refreshing an empty diff viewer, so
the Refresh option of our diff context menu should be disabled when
there is no diff currently shown.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Shawn O. Pearce committed Jan 25, 2007
1 parent bb816c5 commit 86773d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4261,6 +4261,7 @@ $ctxm add command \
-label {Refresh} \
-font font_ui \
-command reshow_diff
lappend diff_actions [list $ctxm entryconf [$ctxm index last] -state]
$ctxm add command \
-label {Copy} \
-font font_ui \
Expand Down

0 comments on commit 86773d9

Please sign in to comment.