mirror of
https://github.com/qinyuhang/ShadowsocksX-NG-R.git
synced 2026-11-03 16:43:31 +00:00
Update for swift 3.
- Convert code to swift 3 - Update alamofire to 4.0.1 for swift 3.
This commit is contained in:
@@ -19,9 +19,9 @@ class AdvPreferencesWindowController: NSWindowController, NSWindowDelegate {
|
||||
|
||||
//------------------------------------------------------------
|
||||
// NSWindowDelegate
|
||||
func windowWillClose(notification: NSNotification) {
|
||||
NSNotificationCenter.defaultCenter()
|
||||
.postNotificationName(NOTIFY_ADV_CONF_CHANGED, object: nil)
|
||||
func windowWillClose(_ notification: Notification) {
|
||||
NotificationCenter.default
|
||||
.post(name: Notification.Name(rawValue: NOTIFY_ADV_CONF_CHANGED), object: nil)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user