mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Allow adding Settings::Section-s without changing Type.
This commit is contained in:
@@ -820,7 +820,7 @@ void SetupSessionsList(
|
||||
st::settingsButton,
|
||||
{ &st::settingsIconLaptop, kIconLightOrange }
|
||||
)->addClickHandler([=] {
|
||||
showOther(Type::Sessions);
|
||||
showOther(Sessions::Id());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -971,6 +971,10 @@ PrivacySecurity::PrivacySecurity(
|
||||
setupContent(controller);
|
||||
}
|
||||
|
||||
rpl::producer<QString> PrivacySecurity::Title() {
|
||||
return tr::lng_settings_section_privacy();
|
||||
}
|
||||
|
||||
rpl::producer<Type> PrivacySecurity::sectionShowOther() {
|
||||
return _showOther.events();
|
||||
}
|
||||
|
Reference in New Issue
Block a user