Fix build for old OS X versions.

This commit is contained in:
John Preston 2018-11-02 20:34:26 +04:00
parent 9042109d04
commit 3646301ce4
1 changed files with 4 additions and 0 deletions

View File

@ -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) {