Commit e9c73907 authored by Jose Blaya's avatar Jose Blaya
Browse files

Merge branch '298-piax-allow-to-favourite-automatic-server' into 'release/3.0.0'

Resolve "PIAX. Allow to favourite 'Automatic' server"

See merge request ios/vpn-ios!407
parents 61977059 4cc5cc98
......@@ -52,8 +52,6 @@ class RegionCell: UITableViewCell, Restylable {
accessibilityIdentifier = "uitests.regions.region_name"
self.favoriteImageView.image = self.favoriteImageView.image?.withRenderingMode(.alwaysTemplate)
self.favoriteImageView.alpha = CGFloat(NSNumber(booleanLiteral: !server.isAutomatic).floatValue)
self.favoriteButton.alpha = CGFloat(NSNumber(booleanLiteral: !server.isAutomatic).floatValue)
self.isFavorite = server.isFavorite
self.updateFavoriteImage()
......
......@@ -55,7 +55,8 @@ class FavoriteServersTile: UIView, Tileable {
}
@objc private func updateFavoriteList() {
let currentServers = Client.providers.serverProvider.currentServers
var currentServers = Client.providers.serverProvider.currentServers
currentServers.append(Server.automatic)
for containerView in stackView.subviews {
if let button = containerView.subviews.first as? ServerButton {
button.setImage(Theme.current.palette.appearance == .light ? Asset.Piax.Tiles.quickConnectPlaceholderLight.image :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment