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

Edit account self destruct time in Settings.

Also accept lambda_once in rpcDone() and rpcFail() lambda wrappers.
This commit is contained in:
John Preston
2017-03-20 18:41:17 +03:00
parent a5df46f381
commit facc729234
9 changed files with 199 additions and 57 deletions

View File

@@ -31,6 +31,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "boxes/autolockbox.h"
#include "boxes/peer_list_box.h"
#include "boxes/edit_privacy_box.h"
#include "boxes/self_destruction_box.h"
#include "settings/settings_privacy_controllers.h"
namespace Settings {
@@ -185,6 +186,7 @@ void PrivacyWidget::createControls() {
}
addChildRow(_cloudPasswordState, marginSmall);
addChildRow(_showAllSessions, marginSmall, lang(lng_settings_show_sessions), SLOT(onShowSessions()));
addChildRow(_selfDestruction, marginSmall, lang(lng_settings_self_destruct), SLOT(onSelfDestruction()));
}
void PrivacyWidget::autoLockUpdated() {
@@ -216,4 +218,8 @@ void PrivacyWidget::onShowSessions() {
Ui::show(Box<SessionsBox>());
}
void PrivacyWidget::onSelfDestruction() {
Ui::show(Box<SelfDestructionBox>());
}
} // namespace Settings