Jelajahi Sumber

update add info connection nucore

alqindiirsyam 4 bulan lalu
induk
melakukan
88ad1f8967

+ 4 - 0
AppBuilder/AppBuilder/FourthTabViewController.swift

@@ -965,6 +965,10 @@ public class FourthTabViewController: UIViewController, UITableViewDelegate, UIT
                 }
             }))
             self.present(alert, animated: true, completion: nil)
+        } else if item.title == "Version".localized() {
+            let alert = LibAlertController(title: "Version".localized(), message: API.sGetVersion() + "\nConnection: \(API.nGetCLXConnState() == 1)", preferredStyle: .alert)
+            alert.addAction(UIAlertAction(title: "Dismiss".localized(), style: UIAlertAction.Style.default, handler: nil))
+            self.present(alert, animated: true, completion: nil)
         }
     }
     

+ 1 - 1
NexilisLite/NexilisLite/Source/View/Control/SettingTableViewController.swift

@@ -802,7 +802,7 @@ public class SettingTableViewController: UITableViewController, UIGestureRecogni
             }))
             self.present(alert, animated: true, completion: nil)
         } else if item.title == "Version".localized() {
-            let alert = LibAlertController(title: "Version".localized(), message: API.sGetVersion() ?? "Unknown".localized(), preferredStyle: .alert)
+            let alert = LibAlertController(title: "Version".localized(), message: API.sGetVersion() + "\nConnection: \(API.nGetCLXConnState() == 1)", preferredStyle: .alert)
             alert.addAction(UIAlertAction(title: "Dismiss".localized(), style: UIAlertAction.Style.default, handler: nil))
             self.present(alert, animated: true, completion: nil)
         }