Skip to content

Commit

Permalink
meta: add v0.13.1 to metainfo (#147)
Browse files Browse the repository at this point in the history
* meta: add v0.13.1 to metainfo

* cmd/trayscale: regenerate `default.pgo`

* internal/ui: fix Mullvad exit node location in the peer list
  • Loading branch information
DeedleFake authored Aug 12, 2024
1 parent 264cc8a commit 8280b64
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Binary file modified cmd/trayscale/default.pgo
Binary file not shown.
6 changes: 6 additions & 0 deletions dev.deedles.Trayscale.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
<content_rating type="oars-1.1" />

<releases>
<release version="v0.13.1" date="2024-08-12">
<description>
<ul>Restructured Mullvad list to categorize per-country.</ul>
<ul>Updated dependencies.</ul>
</description>
</release>
<release version="v0.13.0" date="2024-07-12">
<description>
<ul>Remove control server dconf setting and instead use a new dialog.</ul>
Expand Down
11 changes: 10 additions & 1 deletion internal/ui/mullvadpage.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (page *MullvadPage) Update(a *App, peer *ipnstate.PeerStatus, status tsutil
if tsutil.IsMullvad(peer) {
page.nodes = append(page.nodes, peer)
if peer.ID == exitNodeID {
page.name = fmt.Sprintf("%v [%v]", mullvadPageBaseName, mullvadLocationName(peer.Location))
page.name = fmt.Sprintf("%v [%v]", mullvadPageBaseName, mullvadLongLocationName(peer.Location))
}
}
}
Expand Down Expand Up @@ -184,6 +184,15 @@ func (row *exitNodeRow) Widget() gtk.Widgetter {
return row.w
}

func mullvadLongLocationName(loc *tailcfg.Location) string {
return fmt.Sprintf(
"%v %v, %v",
countryCodeToFlag(loc.CountryCode),
loc.City,
loc.Country,
)
}

func mullvadLocationName(loc *tailcfg.Location) string {
return fmt.Sprintf(
"%v %v",
Expand Down

0 comments on commit 8280b64

Please sign in to comment.