|
@@ -474,12 +474,16 @@ class KMRequestServerManager: NSObject {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if code == 500 {
|
|
|
- let alert = NSAlert()
|
|
|
- alert.messageText = NSLocalizedString(message, comment: "")
|
|
|
- alert.addButton(withTitle: NSLocalizedString("Cancel", comment: ""))
|
|
|
- alert.runModal()
|
|
|
- }
|
|
|
+// if code == 500 {
|
|
|
+// let alert = NSAlert()
|
|
|
+// alert.messageText = NSLocalizedString(message, comment: "")
|
|
|
+// alert.addButton(withTitle: NSLocalizedString("Cancel", comment: ""))
|
|
|
+// if NSApp.mainWindow != nil {
|
|
|
+// alert.beginSheetModal(for: NSApp.mainWindow!)
|
|
|
+// } else {
|
|
|
+// alert.runModal()
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
print(dic)
|
|
|
return Result(result: result,message: message,code: code, error: error)
|