diff --git a/AltStore/Settings/Error Log/ErrorLogViewController.swift b/AltStore/Settings/Error Log/ErrorLogViewController.swift
index 86d84e66..7a67a301 100644
--- a/AltStore/Settings/Error Log/ErrorLogViewController.swift
+++ b/AltStore/Settings/Error Log/ErrorLogViewController.swift
@@ -14,6 +14,8 @@ import Roxas
import Nuke
+import QuickLook
+
final class ErrorLogViewController: UITableViewController
{
private lazy var dataSource = self.makeDataSource()
@@ -176,6 +178,15 @@ private extension ErrorLogViewController
}
}
+ @IBAction func showMinimuxerLogs(_ sender: UIBarButtonItem)
+ {
+ // Show minimuxer.log
+ let previewController = QLPreviewController()
+ previewController.dataSource = self
+ let navigationController = UINavigationController(rootViewController: previewController)
+ present(navigationController, animated: true, completion: nil)
+ }
+
@IBAction func clearLoggedErrors(_ sender: UIBarButtonItem)
{
let alertController = UIAlertController(title: NSLocalizedString("Are you sure you want to clear the error log?", comment: ""), message: nil, preferredStyle: .actionSheet)
@@ -299,3 +310,14 @@ extension ErrorLogViewController
}
}
}
+
+extension ErrorLogViewController: QLPreviewControllerDataSource {
+ func numberOfPreviewItems(in controller: QLPreviewController) -> Int {
+ return 1
+ }
+
+ func previewController(_ controller: QLPreviewController, previewItemAt index: Int) -> QLPreviewItem {
+ let fileURL = FileManager.default.documentsDirectory.appendingPathComponent("minimuxer.log")
+ return fileURL as QLPreviewItem
+ }
+}
diff --git a/AltStore/Settings/Settings.storyboard b/AltStore/Settings/Settings.storyboard
index a4392741..ccf9515c 100644
--- a/AltStore/Settings/Settings.storyboard
+++ b/AltStore/Settings/Settings.storyboard
@@ -21,7 +21,7 @@
-
+
@@ -1051,11 +1051,18 @@ Settings by i cons from the Noun Project
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1066,6 +1073,7 @@ Settings by i cons from the Noun Project
+