mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-31 11:14:54 +01:00
Remove unneeded window layout call. Change placement of initial inspector origin.
This commit is contained in:
parent
c692d357d2
commit
a7a2eabf78
@ -65,7 +65,7 @@ final class InspectorWindowController: NSWindowController {
|
||||
inspectors = [feedInspector, folderInspector, builtinSmartFeedInspector, nothingInspector]
|
||||
currentInspector = nothingInspector
|
||||
|
||||
window?.flippedOrigin = NSPoint(x: 128, y: 128)
|
||||
window?.flippedOrigin = NSPoint(x: 256, y: 256)
|
||||
}
|
||||
|
||||
func inspector(for objects: [Any]?) -> InspectorViewController {
|
||||
@ -100,9 +100,8 @@ private extension InspectorWindowController {
|
||||
|
||||
let flippedOrigin = window.flippedOrigin
|
||||
window.contentViewController = inspector
|
||||
window.layoutIfNeeded()
|
||||
if let origin = flippedOrigin {
|
||||
window.setFlippedOriginAdjustingForScreen(origin)
|
||||
if let flippedOrigin = flippedOrigin {
|
||||
window.setFlippedOriginAdjustingForScreen(flippedOrigin)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user