2021-06-23 22:15:56 +03:00
|
|
|
// Copyright © 2021 Encrypted Ink. All rights reserved.
|
|
|
|
|
|
|
|
import Cocoa
|
|
|
|
|
|
|
|
class Alert: NSAlert {
|
|
|
|
|
|
|
|
override func runModal() -> NSApplication.ModalResponse {
|
|
|
|
defer {
|
|
|
|
Agent.shared.statusBarButtonIsBlocked = false
|
|
|
|
}
|
|
|
|
Agent.shared.statusBarButtonIsBlocked = true
|
|
|
|
return super.runModal()
|
|
|
|
}
|
|
|
|
|
2021-07-17 19:05:59 +03:00
|
|
|
static func showWalletConnectInstructions() {
|
|
|
|
let alert = Alert()
|
|
|
|
alert.messageText = "1 — Open dapp website\n\n2 — Click “Copy to clipboard”\nunder WalletConnect QR code\n\n3 — Open Encrypted Ink"
|
|
|
|
alert.alertStyle = .informational
|
|
|
|
alert.addButton(withTitle: "OK")
|
|
|
|
_ = alert.runModal()
|
|
|
|
}
|
|
|
|
|
2021-06-23 22:15:56 +03:00
|
|
|
}
|