Skip to content

Commit

Permalink
add the index in front of the supercheck calls that can be selected u…
Browse files Browse the repository at this point in the history
…sing keyboard shortcuts ALT+1 - ALT+9
  • Loading branch information
ftl committed May 29, 2024
1 parent 2483bd4 commit 07f4cc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/callinfoView.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (v *callinfoView) SetUserInfo(value string) {

func (v *callinfoView) SetSupercheck(callsigns []core.AnnotatedCallsign) {
var text string
for _, callsign := range callsigns {
for i, callsign := range callsigns {
// see https://docs.gtk.org/Pango/pango_markup.html for reference
attributes := make([]string, 0, 3)
switch {
Expand Down Expand Up @@ -175,6 +175,10 @@ func (v *callinfoView) SetSupercheck(callsigns []core.AnnotatedCallsign) {
attributeString := strings.Join(attributes, " ")

var renderedCallsign string
if i < 9 {
renderedCallsign += fmt.Sprintf("(%d) ", i+1)
}

for _, part := range callsign.Assembly {
var partAttributeString string
var partString string
Expand Down

0 comments on commit 07f4cc2

Please sign in to comment.