2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Boxes redesigned. Common groups moved to Shared Media.

Also transparent images sending fixed.
This commit is contained in:
John Preston
2016-12-13 20:07:56 +03:00
parent 85b434bee4
commit 2436ad74bd
231 changed files with 4233 additions and 4235 deletions

View File

@@ -49,11 +49,11 @@ int LocalPasscodeState::resizeGetHeight(int newWidth) {
}
void LocalPasscodeState::onEdit() {
Ui::showLayer(new PasscodeBox());
Ui::show(Box<PasscodeBox>(false));
}
void LocalPasscodeState::onTurnOff() {
Ui::showLayer(new PasscodeBox(true));
Ui::show(Box<PasscodeBox>(true));
}
void LocalPasscodeState::updateControls() {
@@ -79,9 +79,8 @@ int CloudPasswordState::resizeGetHeight(int newWidth) {
}
void CloudPasswordState::onEdit() {
PasscodeBox *box = new PasscodeBox(_newPasswordSalt, _curPasswordSalt, _hasPasswordRecovery, _curPasswordHint);
auto box = Ui::show(Box<PasscodeBox>(_newPasswordSalt, _curPasswordSalt, _hasPasswordRecovery, _curPasswordHint));
connect(box, SIGNAL(reloadPassword()), this, SLOT(onReloadPassword()));
Ui::showLayer(box);
}
void CloudPasswordState::onTurnOff() {
@@ -92,9 +91,8 @@ void CloudPasswordState::onTurnOff() {
MTPaccount_PasswordInputSettings settings(MTP_account_passwordInputSettings(MTP_flags(flags), MTP_bytes(QByteArray()), MTP_bytes(QByteArray()), MTP_string(QString()), MTP_string(QString())));
MTP::send(MTPaccount_UpdatePasswordSettings(MTP_bytes(QByteArray()), settings), rpcDone(&CloudPasswordState::offPasswordDone), rpcFail(&CloudPasswordState::offPasswordFail));
} else {
PasscodeBox *box = new PasscodeBox(_newPasswordSalt, _curPasswordSalt, _hasPasswordRecovery, _curPasswordHint, true);
auto box = Ui::show(Box<PasscodeBox>(_newPasswordSalt, _curPasswordSalt, _hasPasswordRecovery, _curPasswordHint, true));
connect(box, SIGNAL(reloadPassword()), this, SLOT(onReloadPassword()));
Ui::showLayer(box);
}
}
@@ -196,11 +194,11 @@ void PrivacyWidget::autoLockUpdated() {
}
void PrivacyWidget::onAutoLock() {
Ui::showLayer(new AutoLockBox());
Ui::show(Box<AutoLockBox>());
}
void PrivacyWidget::onShowSessions() {
Ui::showLayer(new SessionsBox());
Ui::show(Box<SessionsBox>());
}
} // namespace Settings