Skip to content

Commit

Permalink
Merge branch 'task/upgrade-floatingpanel' into staging-2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Oct 23, 2023
2 parents 6b38ca0 + 22e1594 commit 613b9c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import JGProgressHUD
extension ControlPanelViewController {

override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
controlPanelView.networkView.isHidden = !UserDefaults.shared.networkProtectionEnabled

if indexPath.row == 0 { return 100 }
if indexPath.row == 1 && Application.shared.settings.connectionProtocol.tunnelType() == .ipsec { return 0 }
if indexPath.row == 1 { return 44 }
Expand Down

0 comments on commit 613b9c2

Please sign in to comment.