mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix build with MSVC.
This commit is contained in:
@@ -2582,7 +2582,6 @@ void SetupPeerColorSample(
|
||||
- st::settingsButtonRightSkip;
|
||||
|
||||
const auto hasProfile = profileIndex.has_value();
|
||||
const auto hasColor = (colorIndex != 0);
|
||||
|
||||
profileSample->setVisible(hasProfile);
|
||||
|
||||
@@ -2614,7 +2613,6 @@ void SetupPeerColorSample(
|
||||
QSize inner,
|
||||
int colorIndex,
|
||||
std::optional<uint8> profileIndex) {
|
||||
const auto hasProfile = profileIndex.has_value();
|
||||
const auto hasColor = (colorIndex != 0);
|
||||
|
||||
const auto right = st::settingsColorButton.padding.right()
|
||||
|
||||
@@ -1098,7 +1098,7 @@ void TopBar::setupUserpicButton(
|
||||
auto result = Api::PeerPhoto::UserPhoto{
|
||||
base::take(data.image),
|
||||
data.id,
|
||||
base::take(data.colors),
|
||||
std::move(data.colors),
|
||||
};
|
||||
_peer->session().api().peerPhoto().upload(
|
||||
_peer,
|
||||
|
||||
@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "base/random.h"
|
||||
|
||||
#include <QtGui/QPainterPath>
|
||||
#include <QtMath>
|
||||
|
||||
namespace Ui {
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "ui/widgets/buttons.h"
|
||||
#include "styles/style_settings.h"
|
||||
|
||||
#include <QtMath>
|
||||
|
||||
namespace Ui {
|
||||
namespace {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user