Skip to content

Commit f33f5cb

Browse files
author
Marino Faggiana
committed
new build
Signed-off-by: Marino Faggiana <[email protected]>
1 parent 886d405 commit f33f5cb

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Nextcloud.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5580,7 +5580,7 @@
55805580
CLANG_WARN_UNREACHABLE_CODE = YES;
55815581
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
55825582
COPY_PHASE_STRIP = NO;
5583-
CURRENT_PROJECT_VERSION = 3;
5583+
CURRENT_PROJECT_VERSION = 4;
55845584
DEBUG_INFORMATION_FORMAT = dwarf;
55855585
DEVELOPMENT_TEAM = NKUJUXUJ3B;
55865586
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -5646,7 +5646,7 @@
56465646
CLANG_WARN_UNREACHABLE_CODE = YES;
56475647
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
56485648
COPY_PHASE_STRIP = NO;
5649-
CURRENT_PROJECT_VERSION = 3;
5649+
CURRENT_PROJECT_VERSION = 4;
56505650
DEVELOPMENT_TEAM = NKUJUXUJ3B;
56515651
ENABLE_STRICT_OBJC_MSGSEND = YES;
56525652
ENABLE_TESTABILITY = YES;

iOSClient/Files/NCFilesNavigationController.swift

+9-8
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@ class NCFilesNavigationController: NCMainNavigationController {
1717
super.viewDidLoad()
1818

1919
self.timerProcess = Timer.scheduledTimer(withTimeInterval: 1, repeats: true, block: { _ in
20-
var color = NCBrandColor.shared.iconImageColor
21-
22-
if let results = self.database.getResultsMetadatas(predicate: NSPredicate(format: "status != %i", NCGlobal.shared.metadataStatusNormal)),
23-
results.count > 0 {
24-
color = NCBrandColor.shared.customer
25-
}
20+
let results = self.database.getResultsMetadatas(predicate: NSPredicate(format: "status != %i", NCGlobal.shared.metadataStatusNormal))
2621

2722
for viewController in self.viewControllers {
28-
if let rightBarButtonItems = self.collectionViewCommon?.navigationItem.rightBarButtonItems,
23+
if let rightBarButtonItems = viewController.navigationItem.rightBarButtonItems,
2924
let buttonTransferItem = rightBarButtonItems.first(where: { $0.tag == self.transfersButtonTag }),
3025
let buttonTransfer = buttonTransferItem.customView as? UIButton {
31-
buttonTransfer.tintColor = color
26+
if results?.count ?? 0 > 0 {
27+
buttonTransfer.tintColor = NCBrandColor.shared.customer
28+
} else {
29+
buttonTransfer.tintColor = NCBrandColor.shared.iconImageColor
30+
}
3231
}
3332
}
3433
})
@@ -48,6 +47,8 @@ class NCFilesNavigationController: NCMainNavigationController {
4847
}
4948
}
5049

50+
// MARK: -
51+
5152
override func setNavigationLeftItems() {
5253
guard let tableAccount = database.getTableAccount(predicate: NSPredicate(format: "account == %@", self.session.account))
5354
else {

0 commit comments

Comments
 (0)