2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Add folders menu to Settings.

This commit is contained in:
John Preston
2020-03-18 14:07:11 +04:00
parent 4881981cf6
commit ffc65f7da4
13 changed files with 54 additions and 5 deletions

View File

@@ -393,6 +393,8 @@ void ManageFiltersPrepare::SetupBox(
crl::guard(button, doneCallback)));
});
rows->push_back({ button, filter });
wrap->resizeToWidth(content->width());
};
const auto &list = session->data().chatsFilters().list();
for (const auto &filter : list) {
@@ -466,8 +468,9 @@ void ManageFiltersPrepare::SetupBox(
const auto prepareGoodIdsForNewFilters = [=] {
const auto &list = session->data().chatsFilters().list();
auto localId = 2;
auto localId = 1;
const auto chooseNextId = [&] {
++localId;
while (ranges::contains(list, localId, &Data::ChatFilter::id)) {
++localId;
}