1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
persephone/Mac/Components/Preferences/PreferencesWindowController.swift

22 lines
469 B
Swift

//
// PreferencesWindowController.swift
// Persephone
//
// Created by Daniel Barber on 2019/3/09.
// Copyright © 2019 Dan Barber. All rights reserved.
//
import AppKit
class PreferencesWindowController: NSWindowController, NSWindowDelegate {
override func windowDidLoad() {
super.windowDidLoad()
}
func windowShouldClose(_ sender: NSWindow) -> Bool {
App.store.dispatch(SavePreferences())
self.window?.orderOut(sender)
return false
}
}