Run scripts faster from widgets
@@ -184,10 +184,6 @@ import SwiftUI
let splitVC = EditorSplitViewController()
splitVC.folder = folder
- if run {
- splitVC.shouldShowConsoleAtBottom = true
- }
-
if isPip {
splitVC.ratio = 0
}
@@ -270,6 +266,7 @@ import SwiftUI
return
}
+ if !run {
document.checkForConflicts(onViewController: self!, completion: { [weak self] in
guard self != nil else {
@@ -287,6 +284,9 @@ import SwiftUI
completion?()
})
})
+ } else {
+ (viewController ?? self)?.present(vc, animated: true, completion: nil)
+ }
}
}
