mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix scale preview on macOS.
This commit is contained in:
parent
43a830f0af
commit
6137c64444
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue