mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
This commit is contained in:
@@ -879,9 +879,9 @@ bool OpenSystemSettings(SystemSettingsType type) {
|
||||
add("pavucontrol-qt");
|
||||
add("pavucontrol");
|
||||
add("alsamixergui");
|
||||
return ranges::find_if(options, [](const QString &command) {
|
||||
return ranges::any_of(options, [](const QString &command) {
|
||||
return QProcess::startDetached(command);
|
||||
}) != end(options);
|
||||
});
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user