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:
@@ -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
|
||||
|
Reference in New Issue
Block a user