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