minor fix
This commit is contained in:
1 parent
363b91b244
commit
8f5d58a25c
1 file changed
+4
-6
@@ -542,9 +542,8 @@ import UIKit
|
||||
@objc static private(set) var squeezeStartShortcut:String = ""
|
||||
@objc static private(set) var squeezeEndShortcut:String = ""
|
||||
|
||||
@available(iOS 13.0, *)
|
||||
@objc static public func enterSqueezeShortcuts(in viewController: UIViewController){
|
||||
|
||||
if #available(iOS 13.0, *) {
|
||||
let pickerViewController = WidgetPickerViewController()
|
||||
pickerViewController.delegate = (viewController as! any WidgetPickerViewControllerDelegate)
|
||||
pickerViewController.keyboardPickerMode = .shortcutPicker
|
||||
@@ -555,8 +554,7 @@ import UIKit
|
||||
let nav = UINavigationController(rootViewController: pickerViewController)
|
||||
nav.modalPresentationStyle = .overFullScreen
|
||||
viewController.present(nav, animated: true)
|
||||
return
|
||||
|
||||
}
|
||||
/*
|
||||
let oscProfileMan = OSCProfilesManager.sharedManager(CGRectZero)
|
||||
selectedProfile = oscProfileMan.getSelectedProfile()
|
||||
@@ -597,8 +595,8 @@ import UIKit
|
||||
*/
|
||||
}
|
||||
|
||||
@available(iOS 13.0, *)
|
||||
@objc static public func enterSqueezeEndShortcut(in viewController: UIViewController){
|
||||
if #available(iOS 13.0, *) {
|
||||
let pickerViewController = WidgetPickerViewController()
|
||||
pickerViewController.delegate = (viewController as! any WidgetPickerViewControllerDelegate)
|
||||
pickerViewController.keyboardPickerMode = .shortcutPicker
|
||||
@@ -609,7 +607,7 @@ import UIKit
|
||||
let nav = UINavigationController(rootViewController: pickerViewController)
|
||||
nav.modalPresentationStyle = .overFullScreen
|
||||
viewController.present(nav, animated: true)
|
||||
return
|
||||
}
|
||||
|
||||
/*
|
||||
let alert = UIAlertController(title: SwiftLocalizationHelper.localizedString(forKey: "Squeeze Shortcut"),
|
||||
|
||||
Reference in new issue
Block a user