Some casing trouble in WireGuard strings.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
9154c7702b
commit
ed28691e4c
|
@ -3,7 +3,7 @@
|
||||||
// WireGuard
|
// WireGuard
|
||||||
//
|
//
|
||||||
// Created by Jeroen Leenarts on 24-05-18.
|
// Created by Jeroen Leenarts on 24-05-18.
|
||||||
// Copyright © 2018 Wireguard. All rights reserved.
|
// Copyright © 2018 WireGuard. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
@ -17,12 +17,21 @@ class TunnelConfigurationTableViewController: UITableViewController {
|
||||||
var viewContext: NSManagedObjectContext!
|
var viewContext: NSManagedObjectContext!
|
||||||
weak var delegate: TunnelConfigurationTableViewControllerDelegate?
|
weak var delegate: TunnelConfigurationTableViewControllerDelegate?
|
||||||
|
|
||||||
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
override func numberOfSections(in tableView: UITableView) -> Int {
|
||||||
return 3
|
return 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
||||||
|
switch section {
|
||||||
|
case 1:
|
||||||
|
return 2
|
||||||
|
default:
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
||||||
switch indexPath.row {
|
switch indexPath.section {
|
||||||
case 0:
|
case 0:
|
||||||
return tableView.dequeueReusableCell(type: InterfaceTableViewCell.self, for: indexPath)
|
return tableView.dequeueReusableCell(type: InterfaceTableViewCell.self, for: indexPath)
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
4A4BAD0720B5F4BC00F12B28 /* Resources */,
|
4A4BAD0720B5F4BC00F12B28 /* Resources */,
|
||||||
4A4BACE420B5F1BF00F12B28 /* Wireguard */,
|
4A4BACE420B5F1BF00F12B28 /* WireGuard */,
|
||||||
4A4BACF920B5F1C100F12B28 /* WireguardTests */,
|
4A4BACF920B5F1C100F12B28 /* WireguardTests */,
|
||||||
4A4BACE320B5F1BF00F12B28 /* Products */,
|
4A4BACE320B5F1BF00F12B28 /* Products */,
|
||||||
87B9E27C2D1820573644527C /* Pods */,
|
87B9E27C2D1820573644527C /* Pods */,
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
4A4BACE420B5F1BF00F12B28 /* Wireguard */ = {
|
4A4BACE420B5F1BF00F12B28 /* WireGuard */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
4A4BAD1420B5F8C000F12B28 /* Models */,
|
4A4BAD1420B5F8C000F12B28 /* Models */,
|
||||||
|
@ -129,7 +129,7 @@
|
||||||
4A4BACEE20B5F1C100F12B28 /* LaunchScreen.storyboard */,
|
4A4BACEE20B5F1C100F12B28 /* LaunchScreen.storyboard */,
|
||||||
4A4BACF120B5F1C100F12B28 /* Info.plist */,
|
4A4BACF120B5F1C100F12B28 /* Info.plist */,
|
||||||
);
|
);
|
||||||
path = Wireguard;
|
path = WireGuard;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
4A4BACF920B5F1C100F12B28 /* WireguardTests */ = {
|
4A4BACF920B5F1C100F12B28 /* WireguardTests */ = {
|
||||||
|
|
Loading…
Reference in New Issue