mirror of
https://github.com/vale981/tdesktop
synced 2025-03-04 17:21:40 -05:00
Fix build for old OS X versions.
This commit is contained in:
parent
9042109d04
commit
3646301ce4
1 changed files with 4 additions and 0 deletions
|
@ -313,7 +313,11 @@ void MainMenu::initResetScaleButton() {
|
|||
return rpl::single(
|
||||
screen->availableGeometry()
|
||||
) | rpl::then(
|
||||
#ifdef OS_MAC_OLD
|
||||
qtSignalProducer(screen, &QScreen::virtualGeometryChanged)
|
||||
#else // OS_MAC_OLD
|
||||
qtSignalProducer(screen, &QScreen::availableGeometryChanged)
|
||||
#endif // OS_MAC_OLD
|
||||
);
|
||||
}) | rpl::flatten_latest(
|
||||
) | rpl::map([](QRect available) {
|
||||
|
|
Loading…
Add table
Reference in a new issue