🎁 Add 'win.closeFilePreview()'
This commit is contained in:
parent
ccabee764b
commit
d5a0dd39a1
7 changed files with 23 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue