mirror of
https://github.com/trudnai/Steve2.git
synced 2026-04-26 19:17:52 +00:00
Auto hiding toolbar
This commit is contained in:
@@ -25,8 +25,12 @@ import Cocoa
|
||||
import AVFoundation
|
||||
|
||||
|
||||
class ToolBarController: NSWindowController {
|
||||
class ToolBarController: NSWindowController, NSWindowDelegate {
|
||||
|
||||
func window(_ window: NSWindow, willUseFullScreenPresentationOptions proposedOptions: NSApplication.PresentationOptions = []) -> NSApplication.PresentationOptions {
|
||||
return [.autoHideToolbar, .autoHideMenuBar, .fullScreen]
|
||||
}
|
||||
|
||||
@IBAction func PowerOn(_ sender: Any) {
|
||||
switch cpuState {
|
||||
case cpuState_inited, cpuState_unknown:
|
||||
|
||||
Reference in New Issue
Block a user