Эх сурвалжийг харах

Merge pull request #189 from maej90/sommeissues

Display name in the more menu
Marino Faggiana 8 жил өмнө
parent
commit
a400594a2e

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-# [Nextcloud](https://nextcloud.com)  iOS app
+# [Nextcloud](https://nextcloud.com)  iOS app V 2.17
 
 [<img src="Animation.gif" 
       alt="Download from App Storey" 

+ 12 - 1
iOSClient/Main/CCMore.swift

@@ -124,7 +124,18 @@ class CCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
         tableAccont = CCCoreData.getActiveAccount()
         if (tableAccont != nil) {
         
-            labelUsername.text = self.tableAccont?.user
+            if let displayName = self.tableAccont!.displayName {
+                if displayName.isEmpty {
+                    labelUsername.text = self.tableAccont!.user
+                }
+                else{
+                    labelUsername.text = self.tableAccont!.displayName
+                }
+            }
+            else{
+                labelUsername.text = self.tableAccont!.user
+            }
+            
             progressQuota.progress = Float((self.tableAccont?.quotaRelative)!) / 100
         
             let quota : String = CCUtility.transformedSize(Double((self.tableAccont?.quotaTotal)!))

BIN
iOSClient/Supporting Files/de.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/es-MX.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/pl.lproj/BKPasscodeView.strings


BIN
iOSClient/Supporting Files/pl.lproj/CTAssetsPicker.strings


BIN
iOSClient/Supporting Files/pl.lproj/Error.strings


BIN
iOSClient/Supporting Files/pl.lproj/InfoPlist.strings


BIN
iOSClient/Supporting Files/pl.lproj/Intro.strings


BIN
iOSClient/Supporting Files/pl.lproj/Localizable.strings


BIN
iOSClient/Supporting Files/pl.lproj/SwiftWebVC.strings