git-gui: Fix the Remote menu separator.
It was positioned incorrectly (offset by one position) if the menu had a tear-off handle. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
c7f7457026
commit
7e09b1531f
@ -2925,6 +2925,7 @@ if {[is_enabled transport]} {
|
||||
populate_fetch_menu
|
||||
set n [expr {[.mbar.remote index end] - $n}]
|
||||
if {$n > 0} {
|
||||
if {[.mbar.remote type 0] eq "tearoff"} { incr n }
|
||||
.mbar.remote insert $n separator
|
||||
}
|
||||
unset n
|
||||
|
Loading…
Reference in New Issue
Block a user