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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user