Skip to content

Commit

Permalink
show VPNBandwidth widget on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Jun 22, 2024
1 parent 396e05e commit 5a24cd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions desktop/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ func NewApp(flags flashlight.Flags, configDir string, proClient proclient.ProCli
onProStatusChange(func(isPro bool) {
app.statsTracker.SetIsPro(isPro)
})
datacap.AddDataCapListener(func(hitDataCap bool) {
app.statsTracker.SetHitDataCap(hitDataCap)
})

log.Debugf("Using configdir: %v", configDir)

Expand Down
4 changes: 2 additions & 2 deletions lib/vpn/vpn_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class VPNTab extends StatelessWidget {
if (Platform.isAndroid) ...{
const CDivider(height: 32.0),
SplitTunnelingWidget(),
if (!proUser) const VPNBandwidth(),
}
},
if (!proUser) const VPNBandwidth(),
],
),
),
Expand Down

0 comments on commit 5a24cd0

Please sign in to comment.