Use HasCapability directly as an argument to ranges::all_of

This commit is contained in:
Ilya Fedin 2024-03-10 02:47:21 +04:00 committed by John Preston
parent dba9cada83
commit c9d58d4259

View file

@ -624,9 +624,7 @@ bool ByDefault() {
// To not to play sound with Don't Disturb activated // To not to play sound with Don't Disturb activated
// (no, using sound capability is not a way) // (no, using sound capability is not a way)
"inhibitions", "inhibitions",
}, [](const auto *capability) { }, HasCapability);
return HasCapability(capability);
});
} }
void Create(Window::Notifications::System *system) { void Create(Window::Notifications::System *system) {