mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Beta version 3.7.5: Fix MSVC x64 Release build.
This commit is contained in:
@@ -995,12 +995,17 @@ void FormController::recoverPassword() {
|
||||
.hasRecovery = _password.hasRecovery,
|
||||
.pendingResetDate = _password.pendingResetDate,
|
||||
};
|
||||
|
||||
// MSVC x64 (non-LTO) Release build fails with a linker error:
|
||||
// - unresolved external variant::variant(variant const &)
|
||||
// It looks like a MSVC bug and this works like a workaround.
|
||||
const auto force = fields.mtp.newSecureSecretAlgo;
|
||||
|
||||
const auto box = _view->show(Box<RecoverBox>(
|
||||
&_controller->session().mtp(),
|
||||
&_controller->session(),
|
||||
pattern,
|
||||
fields));
|
||||
|
||||
box->newPasswordSet(
|
||||
) | rpl::start_with_next([=](const QByteArray &password) {
|
||||
if (password.isEmpty()) {
|
||||
|
||||
@@ -690,6 +690,12 @@ void PanelController::setupPassword() {
|
||||
.hasRecovery = settings.hasRecovery,
|
||||
.pendingResetDate = settings.pendingResetDate,
|
||||
};
|
||||
|
||||
// MSVC x64 (non-LTO) Release build fails with a linker error:
|
||||
// - unresolved external variant::variant(variant const &)
|
||||
// It looks like a MSVC bug and this works like a workaround.
|
||||
const auto force = fields.mtp.newSecureSecretAlgo;
|
||||
|
||||
auto box = show(Box<PasscodeBox>(&_form->window()->session(), fields));
|
||||
box->newPasswordSet(
|
||||
) | rpl::start_with_next([=](const QByteArray &password) {
|
||||
|
||||
Reference in New Issue
Block a user