From e1ecdea5f35018f7b69392a00295b517e1b10061 Mon Sep 17 00:00:00 2001 From: Levin Li Date: Sat, 27 Aug 2022 20:19:12 +0800 Subject: [PATCH] Use online help VC --- MobileCelestia.xcodeproj/project.pbxproj | 8 ++++---- MobileCelestia/MainViewController.swift | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/MobileCelestia.xcodeproj/project.pbxproj b/MobileCelestia.xcodeproj/project.pbxproj index b1fb56cd..96824dbc 100644 --- a/MobileCelestia.xcodeproj/project.pbxproj +++ b/MobileCelestia.xcodeproj/project.pbxproj @@ -1191,8 +1191,8 @@ MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - SHARED_BUILD_NUMBER = 229; - SHARED_BUILD_VERSION = 1.5.11; + SHARED_BUILD_NUMBER = 230; + SHARED_BUILD_VERSION = 1.5.12; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; TARGETED_DEVICE_FAMILY = "1,2,6"; @@ -1251,8 +1251,8 @@ MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = iphoneos; - SHARED_BUILD_NUMBER = 229; - SHARED_BUILD_VERSION = 1.5.11; + SHARED_BUILD_NUMBER = 230; + SHARED_BUILD_VERSION = 1.5.12; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; TARGETED_DEVICE_FAMILY = "1,2,6"; diff --git a/MobileCelestia/MainViewController.swift b/MobileCelestia/MainViewController.swift index f841429d..4efeff1f 100644 --- a/MobileCelestia/MainViewController.swift +++ b/MobileCelestia/MainViewController.swift @@ -623,14 +623,14 @@ extension MainViewController: CelestiaControllerDelegate { @objc private func presentHelp() { let url = URL.fromGuide(guideItemID: "823FB82E-F660-BE54-F3E4-681F5BFD365D", language: AppCore.language, shareable: false) - let vc = OnboardViewController() { [unowned self] (action) in + let vc = FallbackWebViewController(url: url, fallbackViewControllerCreator: OnboardViewController() { [unowned self] (action) in switch action { case .tutorial(let tutorial): self.handleTutorialAction(tutorial) case .url(let url): UIApplication.shared.open(url, options: [:], completionHandler: nil) } - } + }) showViewController(vc) }