This commit is contained in:
Marino Faggiana 2024-11-12 09:59:43 +01:00 коммит произвёл GitHub
Родитель 6656230705
Коммит 84f7922766
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
10 изменённых файлов: 33 добавлений и 6 удалений

Просмотреть файл

@ -110,8 +110,14 @@ class NCIntroViewController: UIViewController, UICollectionViewDataSource, UICol
controller.account = account
controller.modalPresentationStyle = .fullScreen
controller.view.alpha = 0
window?.rootViewController = controller
window?.makeKeyAndVisible()
if let scene = window?.windowScene {
SceneManager.shared.register(scene: scene, withRootViewController: controller)
}
UIView.animate(withDuration: 0.5) {
controller.view.alpha = 1
}

Просмотреть файл

@ -40,7 +40,7 @@ class FileProviderEnumerator: NSObject, NSFileProviderEnumerator {
serverUrl = NCUtilityFileSystem().getHomeServer(session: fileProviderData.shared.session)
} else {
if let metadata = providerUtility.getTableMetadataFromItemIdentifier(enumeratedItemIdentifier),
let directorySource = self.database.getTableDirectory(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@ AND NOT (status IN %@)", metadata.account, metadata.serverUrl, NCGlobal.shared.metadataStatusHideInFileExtension)) {
let directorySource = self.database.getTableDirectory(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", metadata.account, metadata.serverUrl)) {
serverUrl = directorySource.serverUrl + "/" + metadata.fileName
}
@ -158,7 +158,7 @@ class FileProviderEnumerator: NSObject, NSFileProviderEnumerator {
}
func fetchItemsForPage(serverUrl: String, pageNumber: Int, completionHandler: @escaping (_ metadatas: Results<tableMetadata>?) -> Void) {
let predicate = NSPredicate(format: "account == %@ AND serverUrl == %@ AND NOT (status IN %@)", fileProviderData.shared.session.account, serverUrl, NCGlobal.shared.metadataStatusHideInFileExtension)
let predicate = NSPredicate(format: "account == %@ AND serverUrl == %@", fileProviderData.shared.session.account, serverUrl)
if pageNumber == 1 {
NextcloudKit.shared.readFileOrFolder(serverUrlFileName: serverUrl, depth: "1", showHiddenFiles: NCKeychain().showHiddenFiles, account: fileProviderData.shared.session.account) { _, files, _, error in

Просмотреть файл

@ -5501,7 +5501,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 6.1.5;
MARKETING_VERSION = 6.1.6;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-v";
OTHER_LDFLAGS = "";
@ -5564,7 +5564,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 6.1.5;
MARKETING_VERSION = 6.1.6;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-v";
OTHER_LDFLAGS = "";

Просмотреть файл

@ -308,7 +308,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
// MARK: - Login
func openLogin(selector: Int) {
func openLogin(selector: Int, window: UIWindow? = nil) {
UIApplication.shared.allSceneSessionDestructionExceptFirst()
func showLoginViewController(_ viewController: UIViewController?) {
@ -329,6 +329,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
} else {
controller.present(navigationController, animated: true)
}
} else {
window?.rootViewController = navigationController
window?.makeKeyAndVisible()
}
}

Просмотреть файл

@ -428,8 +428,14 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
controller.account = account
controller.modalPresentationStyle = .fullScreen
controller.view.alpha = 0
window?.rootViewController = controller
window?.makeKeyAndVisible()
if let scene = window?.windowScene {
SceneManager.shared.register(scene: scene, withRootViewController: controller)
}
UIView.animate(withDuration: 0.5) {
controller.view.alpha = 1
}

Просмотреть файл

@ -75,8 +75,14 @@ struct NCLoginPoll: View {
controller.account = loginManager.account
controller.modalPresentationStyle = .fullScreen
controller.view.alpha = 0
window?.rootViewController = controller
window?.makeKeyAndVisible()
if let scene = window?.windowScene {
SceneManager.shared.register(scene: scene, withRootViewController: controller)
}
UIView.animate(withDuration: 0.5) {
controller.view.alpha = 1
}

Просмотреть файл

@ -181,8 +181,14 @@ extension NCLoginProvider: WKNavigationDelegate {
controller.account = account
controller.modalPresentationStyle = .fullScreen
controller.view.alpha = 0
window?.rootViewController = controller
window?.makeKeyAndVisible()
if let scene = window?.windowScene {
SceneManager.shared.register(scene: scene, withRootViewController: controller)
}
UIView.animate(withDuration: 0.5) {
controller.view.alpha = 1
}

Просмотреть файл

@ -71,7 +71,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
UserDefaults.standard.removePersistentDomain(forName: bundleID)
}
if NCBrandOptions.shared.disable_intro {
appDelegate.openLogin(selector: NCGlobal.shared.introLogin)
appDelegate.openLogin(selector: NCGlobal.shared.introLogin, window: window)
} else {
if let viewController = UIStoryboard(name: "NCIntro", bundle: nil).instantiateInitialViewController() as? NCIntroViewController {
let navigationController = NCLoginNavigationController(rootViewController: viewController)

Двоичный файл не отображается.

Двоичный файл не отображается.