🎁 Add 'win.closeFilePreview()'

This commit is contained in:
Daniel Pham 2016-11-21 13:30:13 -05:00 committed by Kevin Sawicki
parent ccabee764b
commit d5a0dd39a1
7 changed files with 23 additions and 0 deletions

View file

@ -1004,6 +1004,12 @@ void NativeWindowMac::PreviewFile(const std::string& path,
[window_ previewFileAtPath:path_ns withName:name_ns];
}
void NativeWindowMac::CloseFilePreview() {
if ([QLPreviewPanel sharedPreviewPanelExists]) {
[[QLPreviewPanel sharedPreviewPanel] close];
}
}
void NativeWindowMac::SetMovable(bool movable) {
[window_ setMovable:movable];
}