2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-01 11:22:00 +00:00

Slightly improved code style for long equality expressions.

This commit is contained in:
23rd
2024-04-11 18:56:11 +03:00
committed by John Preston
parent a37cbd7d05
commit 1c223e570a
48 changed files with 159 additions and 160 deletions

View File

@@ -315,19 +315,19 @@ bool NotificationData::init(
_actions.push_back("inline-reply");
_actions.push_back(tr::lng_notification_reply(tr::now).toStdString());
_notificationRepliedSignalId =
_interface.signal_notification_replied().connect([=](
XdgNotifications::Notifications,
uint id,
std::string text) {
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
if (id == _notificationId) {
_manager->notificationReplied(
_id,
{ QString::fromStdString(text), {} });
}
_notificationRepliedSignalId
= _interface.signal_notification_replied().connect([=](
XdgNotifications::Notifications,
uint id,
std::string text) {
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
if (id == _notificationId) {
_manager->notificationReplied(
_id,
{ QString::fromStdString(text), {} });
}
});
});
});
}
_actionInvokedSignalId = _interface.signal_action_invoked().connect([=](