mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-28 00:52:38 +01:00
e61682ef46
Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
16 lines
388 B
Swift
16 lines
388 B
Swift
import Cocoa
|
|
import FlutterMacOS
|
|
|
|
class MainFlutterWindow: NSWindow {
|
|
override func awakeFromNib() {
|
|
let flutterViewController = FlutterViewController()
|
|
let windowFrame = self.frame
|
|
self.contentViewController = flutterViewController
|
|
self.setFrame(windowFrame, display: true)
|
|
|
|
RegisterGeneratedPlugins(registry: flutterViewController)
|
|
|
|
super.awakeFromNib()
|
|
}
|
|
}
|