Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: add v0.13.1 to metainfo #147

Merged
merged 3 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading