1
0
mirror of https://github.com/jellyfin/jellyfin-server-macos.git synced 2025-04-22 00:10:19 +00:00
Files
2022-08-08 22:12:21 -06:00

26 lines
852 B
Swift

//
// Jellyfin Server is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import AppKit
class PreferencesWindow: NSWindow {
convenience init() {
let storyboard = NSStoryboard(name: "PreferencesViewController", bundle: nil)
let preferencesViewController = storyboard.instantiateController(withIdentifier: "PreferencesViewController") as! PreferencesViewController
self.init(contentViewController: preferencesViewController)
styleMask.remove(.fullScreen)
styleMask.remove(.miniaturizable)
styleMask.remove(.resizable)
titlebarAppearsTransparent = true
title = ""
level = .floating
}
}