Move add exceptions button to the top.

This commit is contained in:
John Preston 2020-03-30 15:00:50 +04:00
parent 570ab663b7
commit 2379812890
1 changed files with 10 additions and 10 deletions

View File

@ -545,6 +545,11 @@ void EditFilterBox(
AddSkip(content);
AddSubsectionTitle(content, tr::lng_filters_include());
const auto includeAdd = AddButton(
content,
tr::lng_filters_add_chats() | Ui::Text::ToUpper(),
st::settingsUpdate);
const auto include = SetupChatsPreview(
content,
data,
@ -552,11 +557,6 @@ void EditFilterBox(
kTypes,
&Data::ChatFilter::always);
const auto includeAdd = AddButton(
content,
tr::lng_filters_add_chats() | Ui::Text::ToUpper(),
st::settingsUpdate);
AddSkip(content);
content->add(
object_ptr<Ui::FlatLabel>(
@ -569,6 +569,11 @@ void EditFilterBox(
AddSubsectionTitle(content, tr::lng_filters_exclude());
const auto excludeAdd = AddButton(
content,
tr::lng_filters_remove_chats() | Ui::Text::ToUpper(),
st::settingsUpdate);
const auto exclude = SetupChatsPreview(
content,
data,
@ -576,11 +581,6 @@ void EditFilterBox(
kExcludeTypes,
&Data::ChatFilter::never);
const auto excludeAdd = AddButton(
content,
tr::lng_filters_remove_chats() | Ui::Text::ToUpper(),
st::settingsUpdate);
AddSkip(content);
content->add(
object_ptr<Ui::FlatLabel>(