Skip to content

Commit 9138ce5

Browse files
KM-17485: only remove version
Instead of removing the last element every time, which leads to items disappearing from the side menu every time this method is called, just remove the intended "version" item.
1 parent a1f2bb6 commit 9138ce5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PIA VPN/UI/Menu/MenuViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ final class MenuViewController: AutolayoutViewController {
167167

168168
} else {
169169
labelVersion.text = Macros.localizedVersionFullString()
170-
allItems[1].removeLast()
170+
allItems[1].removeAll { $0 == .version }
171171
}
172172
}
173173
}

0 commit comments

Comments
 (0)