Refactor the document window controller and the prefs controller. Some regression still in there.
This commit is contained in:
49 files changed
+2505
-2379
No files matched your search
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// PrefsWindow.swift
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 06/02/2018.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
|
||||
class PrefsWindow: NSWindow {
|
||||
|
||||
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
||||
if menuItem.action == #selector(NSWindow.toggleToolbarShown(_:)) {
|
||||
return false
|
||||
}
|
||||
return super.validateMenuItem(menuItem)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user