mirror of
https://github.com/lil-org/wallet.git
synced 2024-12-28 23:14:11 +03:00
29 lines
782 B
Swift
29 lines
782 B
Swift
// Copyright © 2021 Tokenary. All rights reserved.
|
|
|
|
import Cocoa
|
|
|
|
class WaitingViewController: NSViewController {
|
|
|
|
static func withReason(_ reason: String) -> WaitingViewController {
|
|
let new = instantiate(WaitingViewController.self)
|
|
new.reason = reason
|
|
return new
|
|
}
|
|
|
|
private var reason = ""
|
|
|
|
@IBOutlet weak var progressIndicator: NSProgressIndicator!
|
|
@IBOutlet weak var titleLabel: NSTextField!
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
titleLabel.stringValue = reason
|
|
progressIndicator.startAnimation(nil)
|
|
}
|
|
|
|
@IBAction func actionButtonTapped(_ sender: Any) {
|
|
Window.closeWindowAndActivateNext(idToClose: view.window?.windowNumber, specificBrowser: nil)
|
|
}
|
|
|
|
}
|