Skip to content

Commit baf1d80

Browse files
committed
Hot fix for missing peer cell flag
1 parent 33d419e commit baf1d80

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Deluge Remote.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@
638638
"@executable_path/Frameworks",
639639
);
640640
LIBRARY_SEARCH_PATHS = "";
641-
MARKETING_VERSION = 1.4;
641+
MARKETING_VERSION = 1.4.1;
642642
PRODUCT_BUNDLE_IDENTIFIER = "io.rudybermudez.Deluge-Remote";
643643
PRODUCT_NAME = "$(TARGET_NAME)";
644644
SUPPORTS_MACCATALYST = NO;
@@ -666,7 +666,7 @@
666666
"@executable_path/Frameworks",
667667
);
668668
LIBRARY_SEARCH_PATHS = "";
669-
MARKETING_VERSION = 1.4;
669+
MARKETING_VERSION = 1.4.1;
670670
PRODUCT_BUNDLE_IDENTIFIER = "io.rudybermudez.Deluge-Remote";
671671
PRODUCT_NAME = "$(TARGET_NAME)";
672672
SUPPORTS_MACCATALYST = NO;

Deluge Remote/Sources/Models/Cells/TorrentConnectedClientCell.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import UIKit
1111
class TorrentPeerTableViewCellData: TVCellBuilder {
1212
var clientName: String
1313
var ipAddress: String
14-
var flag: UIImage
14+
var flag: UIImage?
1515
var uploadSpeed: String
1616
var downloadSpeed: String
1717
var progress: Double
@@ -28,7 +28,7 @@ class TorrentPeerTableViewCellData: TVCellBuilder {
2828
init(peer: PeerMetadata) {
2929
self.clientName = peer.client
3030
self.ipAddress = peer.ip
31-
self.flag = UIImage(named: "\(peer.country.lowercased()).png")!
31+
self.flag = UIImage(named: "\(peer.country.lowercased()).png")
3232
self.uploadSpeed = "\(peer.up_speed.transferRateString())"
3333
self.downloadSpeed = "\(peer.down_speed.transferRateString())"
3434
self.progress = peer.progress
@@ -37,6 +37,7 @@ class TorrentPeerTableViewCellData: TVCellBuilder {
3737
func cell(for tableView: UITableView, at indexPath: IndexPath) -> UITableViewCell {
3838
let cell = tableView.dequeueReusableCell(withIdentifier: "torrentPeerTableViewCell", for: indexPath) as! TorrentPeerTableViewCell
3939
cell.clientName.text = clientName
40+
cell.flag.image = flag
4041
cell.ipAddress.text = ipAddress
4142
cell.uploadSpeed.text = uploadSpeed
4243
cell.downloadSpeed.text = downloadSpeed

0 commit comments

Comments
 (0)