Fix scale preview on macOS.

This commit is contained in:
John Preston 2023-01-06 22:33:02 +04:00
parent 43a830f0af
commit 6137c64444

View file

@ -168,6 +168,11 @@ void Preview::watchParent() {
}
void Preview::reparent() {
if (_widget.window() == &_widget) {
// macOS just removes parenting for a _window.
_parentWatcher = nullptr;
return;
}
_widget.setParent(_widget.window());
if (_shown) {
_widget.show();