Skip to content

Commit 84f7922

Browse files
author
Marino Faggiana
authored
Version 6.1.6 (#3185)
1 parent 6656230 commit 84f7922

File tree

10 files changed

+33
-6
lines changed

10 files changed

+33
-6
lines changed

Brand/Intro/NCIntroViewController.swift

+6
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,14 @@ class NCIntroViewController: UIViewController, UICollectionViewDataSource, UICol
110110
controller.account = account
111111
controller.modalPresentationStyle = .fullScreen
112112
controller.view.alpha = 0
113+
113114
window?.rootViewController = controller
114115
window?.makeKeyAndVisible()
116+
117+
if let scene = window?.windowScene {
118+
SceneManager.shared.register(scene: scene, withRootViewController: controller)
119+
}
120+
115121
UIView.animate(withDuration: 0.5) {
116122
controller.view.alpha = 1
117123
}

File Provider Extension/FileProviderEnumerator.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class FileProviderEnumerator: NSObject, NSFileProviderEnumerator {
4040
serverUrl = NCUtilityFileSystem().getHomeServer(session: fileProviderData.shared.session)
4141
} else {
4242
if let metadata = providerUtility.getTableMetadataFromItemIdentifier(enumeratedItemIdentifier),
43-
let directorySource = self.database.getTableDirectory(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@ AND NOT (status IN %@)", metadata.account, metadata.serverUrl, NCGlobal.shared.metadataStatusHideInFileExtension)) {
43+
let directorySource = self.database.getTableDirectory(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", metadata.account, metadata.serverUrl)) {
4444
serverUrl = directorySource.serverUrl + "/" + metadata.fileName
4545

4646
}
@@ -158,7 +158,7 @@ class FileProviderEnumerator: NSObject, NSFileProviderEnumerator {
158158
}
159159

160160
func fetchItemsForPage(serverUrl: String, pageNumber: Int, completionHandler: @escaping (_ metadatas: Results<tableMetadata>?) -> Void) {
161-
let predicate = NSPredicate(format: "account == %@ AND serverUrl == %@ AND NOT (status IN %@)", fileProviderData.shared.session.account, serverUrl, NCGlobal.shared.metadataStatusHideInFileExtension)
161+
let predicate = NSPredicate(format: "account == %@ AND serverUrl == %@", fileProviderData.shared.session.account, serverUrl)
162162

163163
if pageNumber == 1 {
164164
NextcloudKit.shared.readFileOrFolder(serverUrlFileName: serverUrl, depth: "1", showHiddenFiles: NCKeychain().showHiddenFiles, account: fileProviderData.shared.session.account) { _, files, _, error in

Nextcloud.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5501,7 +5501,7 @@
55015501
"@executable_path/Frameworks",
55025502
"@executable_path/../../Frameworks",
55035503
);
5504-
MARKETING_VERSION = 6.1.5;
5504+
MARKETING_VERSION = 6.1.6;
55055505
ONLY_ACTIVE_ARCH = YES;
55065506
OTHER_CFLAGS = "-v";
55075507
OTHER_LDFLAGS = "";
@@ -5564,7 +5564,7 @@
55645564
"@executable_path/Frameworks",
55655565
"@executable_path/../../Frameworks",
55665566
);
5567-
MARKETING_VERSION = 6.1.5;
5567+
MARKETING_VERSION = 6.1.6;
55685568
ONLY_ACTIVE_ARCH = YES;
55695569
OTHER_CFLAGS = "-v";
55705570
OTHER_LDFLAGS = "";

iOSClient/AppDelegate.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
308308

309309
// MARK: - Login
310310

311-
func openLogin(selector: Int) {
311+
func openLogin(selector: Int, window: UIWindow? = nil) {
312312
UIApplication.shared.allSceneSessionDestructionExceptFirst()
313313

314314
func showLoginViewController(_ viewController: UIViewController?) {
@@ -329,6 +329,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
329329
} else {
330330
controller.present(navigationController, animated: true)
331331
}
332+
} else {
333+
window?.rootViewController = navigationController
334+
window?.makeKeyAndVisible()
332335
}
333336
}
334337

iOSClient/Login/NCLogin.swift

+6
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,14 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
428428
controller.account = account
429429
controller.modalPresentationStyle = .fullScreen
430430
controller.view.alpha = 0
431+
431432
window?.rootViewController = controller
432433
window?.makeKeyAndVisible()
434+
435+
if let scene = window?.windowScene {
436+
SceneManager.shared.register(scene: scene, withRootViewController: controller)
437+
}
438+
433439
UIView.animate(withDuration: 0.5) {
434440
controller.view.alpha = 1
435441
}

iOSClient/Login/NCLoginPoll.swift

+6
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,14 @@ struct NCLoginPoll: View {
7575
controller.account = loginManager.account
7676
controller.modalPresentationStyle = .fullScreen
7777
controller.view.alpha = 0
78+
7879
window?.rootViewController = controller
7980
window?.makeKeyAndVisible()
81+
82+
if let scene = window?.windowScene {
83+
SceneManager.shared.register(scene: scene, withRootViewController: controller)
84+
}
85+
8086
UIView.animate(withDuration: 0.5) {
8187
controller.view.alpha = 1
8288
}

iOSClient/Login/NCLoginProvider.swift

+6
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,14 @@ extension NCLoginProvider: WKNavigationDelegate {
181181
controller.account = account
182182
controller.modalPresentationStyle = .fullScreen
183183
controller.view.alpha = 0
184+
184185
window?.rootViewController = controller
185186
window?.makeKeyAndVisible()
187+
188+
if let scene = window?.windowScene {
189+
SceneManager.shared.register(scene: scene, withRootViewController: controller)
190+
}
191+
186192
UIView.animate(withDuration: 0.5) {
187193
controller.view.alpha = 1
188194
}

iOSClient/SceneDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
7171
UserDefaults.standard.removePersistentDomain(forName: bundleID)
7272
}
7373
if NCBrandOptions.shared.disable_intro {
74-
appDelegate.openLogin(selector: NCGlobal.shared.introLogin)
74+
appDelegate.openLogin(selector: NCGlobal.shared.introLogin, window: window)
7575
} else {
7676
if let viewController = UIStoryboard(name: "NCIntro", bundle: nil).instantiateInitialViewController() as? NCIntroViewController {
7777
let navigationController = NCLoginNavigationController(rootViewController: viewController)
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)