mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Version 1.2.16: Fix build in Xcode 9.3.
This commit is contained in:
@@ -141,7 +141,7 @@ Controller::ColumnLayout Controller::computeColumnLayout() const {
|
||||
auto bodyWidth = window()->bodyWidget()->width();
|
||||
auto dialogsWidth = 0, chatWidth = 0, thirdWidth = 0;
|
||||
|
||||
auto useOneColumnLayout = [this, bodyWidth] {
|
||||
auto useOneColumnLayout = [&] {
|
||||
auto minimalNormal = st::columnMinimalWidthLeft
|
||||
+ st::columnMinimalWidthMain;
|
||||
if (bodyWidth < minimalNormal) {
|
||||
@@ -150,7 +150,7 @@ Controller::ColumnLayout Controller::computeColumnLayout() const {
|
||||
return false;
|
||||
};
|
||||
|
||||
auto useNormalLayout = [this, bodyWidth] {
|
||||
auto useNormalLayout = [&] {
|
||||
// Used if useSmallColumnLayout() == false.
|
||||
if (bodyWidth < minimalThreeColumnWidth()) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user