2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Remove old settings.

This commit is contained in:
John Preston
2018-09-11 22:00:23 +03:00
parent 7d8ba66211
commit 2f408cd773
7 changed files with 474 additions and 50 deletions

View File

@@ -8,7 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "settings/settings_privacy_security.h"
#include "settings/settings_common.h"
#include "old_settings/settings_privacy_controllers.h"
#include "settings/settings_privacy_controllers.h"
#include "boxes/peer_list_box.h"
#include "boxes/edit_privacy_box.h"
#include "boxes/passcode_box.h"
@@ -57,11 +57,11 @@ void SetupPrivacy(not_null<Ui::VerticalLayout*> container) {
box->closeBox();
});
box->addLeftButton(langFactory(lng_blocked_list_add), [] {
OldSettings::BlockedBoxController::BlockNewUser();
BlockedBoxController::BlockNewUser();
});
};
Ui::show(Box<PeerListBox>(
std::make_unique<OldSettings::BlockedBoxController>(),
std::make_unique<BlockedBoxController>(),
initBox));
});
@@ -94,7 +94,6 @@ void SetupPrivacy(not_null<Ui::VerticalLayout*> container) {
}
});
};
using namespace OldSettings;
const auto add = [&](LangKey label, Privacy::Key key, auto controller) {
AddButtonWithLabel(
container,