1
0
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:
2019-07-15 17:23:08 +02:00
parent 48d0878dfd
commit 398dad9d5e
2 changed files with 3 additions and 2 deletions

View File

@ -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
}
}

View File

@ -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)
}