2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Allow fix chats order and auto switch (support).

This commit is contained in:
John Preston
2018-09-29 15:18:26 +03:00
parent 29432d5d6a
commit 25cefc6eab
16 changed files with 238 additions and 47 deletions

View File

@@ -161,15 +161,21 @@ not_null<Button*> AddButtonWithLabel(
void AddSubsectionTitle(
not_null<Ui::VerticalLayout*> container,
LangKey text) {
rpl::producer<QString> text) {
container->add(
object_ptr<Ui::FlatLabel>(
container,
Lang::Viewer(text),
std::move(text),
st::settingsSubsectionTitle),
st::settingsSubsectionTitlePadding);
}
void AddSubsectionTitle(
not_null<Ui::VerticalLayout*> container,
LangKey text) {
AddSubsectionTitle(container, Lang::Viewer(text));
}
void FillMenu(Fn<void(Type)> showOther, MenuCallback addAction) {
addAction(
lang(lng_settings_information),