Fix various line length in notifications_manager_linux

This commit is contained in:
Ilya Fedin 2022-12-29 06:52:15 +04:00 committed by John Preston
parent c134861cd9
commit 1666683dbb
1 changed files with 12 additions and 8 deletions

View File

@ -132,7 +132,9 @@ void StartServiceAsync(Fn<void()> callback) {
const auto errorName =
Gio::DBus::ErrorUtils::get_remote_error(e).raw();
if (!ranges::contains(NotSupportedErrors, errorName)) {
if (!ranges::contains(
NotSupportedErrors,
errorName)) {
throw e;
}
}
@ -534,12 +536,13 @@ bool NotificationData::init(
_actions.push_back(
tr::lng_notification_reply(tr::now).toStdString());
_notificationRepliedSignalId = _dbusConnection->signal_subscribe(
signalEmitted,
std::string(kService),
std::string(kInterface),
"NotificationReplied",
std::string(kObjectPath));
_notificationRepliedSignalId =
_dbusConnection->signal_subscribe(
signalEmitted,
std::string(kService),
std::string(kInterface),
"NotificationReplied",
std::string(kObjectPath));
} else {
// icon name according to https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
_actions.push_back("mail-reply-sender");
@ -895,7 +898,8 @@ void Create(Window::Notifications::System *system) {
return;
}
GetServerInformation([=](const std::optional<ServerInformation> &result) {
GetServerInformation([=](
const std::optional<ServerInformation> &result) {
CurrentServerInformation = result;
oneReady();
});