|
@@ -100,6 +100,7 @@ class KMImageToPDFWindowController: NSWindowController {
|
|
let point = CGPoint(x: window.frame.origin.x + window.frame.width / 2 - (imageToPDFWindow.window?.frame.size.width)! / 2,
|
|
let point = CGPoint(x: window.frame.origin.x + window.frame.width / 2 - (imageToPDFWindow.window?.frame.size.width)! / 2,
|
|
y: window.frame.origin.y + window.frame.height / 2 - (imageToPDFWindow.window?.frame.size.height)! / 2)
|
|
y: window.frame.origin.y + window.frame.height / 2 - (imageToPDFWindow.window?.frame.size.height)! / 2)
|
|
window.addChildWindow(imageToPDFWindow.window!, ordered: NSWindow.OrderingMode.above)
|
|
window.addChildWindow(imageToPDFWindow.window!, ordered: NSWindow.OrderingMode.above)
|
|
|
|
+ imageToPDFWindow.window?.center()
|
|
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
|
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
|
|
// imageToPDFWindow.window?.setFrameOrigin(point)
|
|
// imageToPDFWindow.window?.setFrameOrigin(point)
|
|
// imageToPDFWindow.window?.makeKeyAndOrderFront(nil)
|
|
// imageToPDFWindow.window?.makeKeyAndOrderFront(nil)
|