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

Refactor

parent b6855a9e
......@@ -350,12 +350,14 @@ class DashboardViewController: AutolayoutViewController {
}
@objc private func viewHasRotated() {
if tileModeStatus == .edit,
let tileLayout = collectionView.collectionViewLayout as? TileFlowLayout {
tileLayout.removeDraggingViewFromSuperView()
if Client.providers.accountProvider.isLoggedIn {
if tileModeStatus == .edit,
let tileLayout = collectionView.collectionViewLayout as? TileFlowLayout {
tileLayout.removeDraggingViewFromSuperView()
}
updateCurrentStatus()
updateTileLayout()
}
updateCurrentStatus()
updateTileLayout()
}
@objc private func accountDidLogout(notification: Notification) {
......
......@@ -871,9 +871,6 @@ extension SettingsViewController: UITableViewDataSource, UITableViewDelegate {
case .trustedNetworks:
cell.textLabel?.text = L10n.Settings.Hotspothelper.title
cell.detailTextLabel?.text = Client.preferences.useWiFiProtection ?
L10n.Global.enabled :
L10n.Global.disabled
case .publicUsername:
cell.textLabel?.text = "Public username"
......
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