mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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() {
|
void Preview::reparent() {
|
||||||
|
if (_widget.window() == &_widget) {
|
||||||
|
// macOS just removes parenting for a _window.
|
||||||
|
_parentWatcher = nullptr;
|
||||||
|
return;
|
||||||
|
}
|
||||||
_widget.setParent(_widget.window());
|
_widget.setParent(_widget.window());
|
||||||
if (_shown) {
|
if (_shown) {
|
||||||
_widget.show();
|
_widget.show();
|
||||||
|
|
Loading…
Add table
Reference in a new issue