mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 06:07:45 +00:00
Make "All Users" checkbox behave like the "All Actions" checkbox
This commit is contained in:
parent
6c3cc4fb27
commit
a23090dcb4
@ -284,9 +284,10 @@ void FilterBox::Inner::createAllUsersCheckbox(const FilterValue &filter) {
|
||||
_allUsers = addRow(object_ptr<Ui::Checkbox>(this, tr::lng_admin_log_filter_all_admins(tr::now), filter.allUsers, st::adminLogFilterCheckbox), st::adminLogFilterSkip);
|
||||
_allUsers->checkedChanges(
|
||||
) | rpl::start_with_next([=](bool checked) {
|
||||
if (checked && !std::exchange(_restoringInvariant, true)) {
|
||||
if (!std::exchange(_restoringInvariant, true)) {
|
||||
auto allChecked = _allUsers->checked();
|
||||
for_const (auto &&checkbox, _admins) {
|
||||
checkbox->setChecked(true);
|
||||
checkbox->setChecked(allChecked);
|
||||
}
|
||||
_restoringInvariant = false;
|
||||
if (_changedCallback) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user