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
// (no, using sound capability is not a way)
"inhibitions",
}, [](const auto *capability) {
return HasCapability(capability);
});
}, HasCapability);
}
void Create(Window::Notifications::System *system) {