Skip to content

Commit

Permalink
fix(ui): update showFloatingPanel method in MainViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Nov 22, 2023
1 parent 2a255a0 commit 7dc911c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions IVPNClient/Scenes/MainScreen/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,14 @@ class MainViewController: UIViewController {

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
showFloatingPanel()
}

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
refreshUI()
initConnectionInfo()
startPingService()
DispatchQueue.async { [self] in
showFloatingPanel()
}
}

deinit {
Expand Down Expand Up @@ -248,7 +246,7 @@ class MainViewController: UIViewController {
}

private func showFloatingPanel() {
floatingPanel.show(animated: true)
floatingPanel.show(animated: false)
}

private func startAPIUpdate() {
Expand Down

0 comments on commit 7dc911c

Please sign in to comment.