|
@@ -46,6 +46,7 @@ class NCFiles: NCCollectionViewCommon {
|
|
|
|
|
|
if isRoot {
|
|
if isRoot {
|
|
serverUrl = NCUtilityFileSystem.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)
|
|
serverUrl = NCUtilityFileSystem.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)
|
|
|
|
+ titleForHome()
|
|
}
|
|
}
|
|
|
|
|
|
super.viewWillAppear(animated)
|
|
super.viewWillAppear(animated)
|
|
@@ -57,12 +58,25 @@ class NCFiles: NCCollectionViewCommon {
|
|
|
|
|
|
if isRoot {
|
|
if isRoot {
|
|
serverUrl = NCUtilityFileSystem.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)
|
|
serverUrl = NCUtilityFileSystem.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)
|
|
|
|
+ titleForHome()
|
|
reloadDataSourceNetwork(forced: true)
|
|
reloadDataSourceNetwork(forced: true)
|
|
}
|
|
}
|
|
|
|
|
|
super.initialize()
|
|
super.initialize()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // MARK: - Title for home
|
|
|
|
+
|
|
|
|
+ private func titleForHome() {
|
|
|
|
+
|
|
|
|
+ let activeAccount = NCManageDatabase.shared.getActiveAccount()
|
|
|
|
+ if activeAccount?.alias == "" {
|
|
|
|
+ titleCurrentFolder = NCBrandOptions.shared.brand
|
|
|
|
+ } else {
|
|
|
|
+ titleCurrentFolder = activeAccount?.alias ?? NCBrandOptions.shared.brand
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
// MARK: - DataSource + NC Endpoint
|
|
// MARK: - DataSource + NC Endpoint
|
|
|
|
|
|
override func reloadDataSource() {
|
|
override func reloadDataSource() {
|