mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
✨ Minor cleanup, shell output window title
This commit is contained in:
@ -12,6 +12,7 @@ import Cocoa
|
||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
||||
// MARK: - Variables
|
||||
|
||||
let sharedShell : Shell
|
||||
let state : App
|
||||
let menu : MainMenu
|
||||
@ -32,7 +33,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ aNotification: Notification) {
|
||||
// Insert code here to tear down your application
|
||||
self.state.windowController = nil
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ class LogViewController: NSViewController, ShellDelegate {
|
||||
let vc = NSStoryboard(name: "Main", bundle: nil).instantiateController(withIdentifier: "logWindow") as! LogViewController
|
||||
Shell.user.delegate = vc
|
||||
let window = NSWindow(contentViewController: vc)
|
||||
window.title = "Terminal Output"
|
||||
window.title = "Shell output (/bin/bash --login)"
|
||||
window.delegate = delegate
|
||||
App.shared.windowController = NSWindowController(window: window)
|
||||
}
|
||||
|
Reference in New Issue
Block a user