mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-08 02:15:56 +00:00
Remove Platform:: where is not needed in linux platform files
Fix lines length in notifications_manager_linux.cpp
This commit is contained in:
@@ -87,8 +87,7 @@ void GetSupported() {
|
||||
}
|
||||
Checked = true;
|
||||
|
||||
if (Core::App().settings().nativeNotifications()
|
||||
&& !Platform::IsWayland()) {
|
||||
if (Core::App().settings().nativeNotifications() && !IsWayland()) {
|
||||
ComputeSupported(true);
|
||||
} else {
|
||||
ComputeSupported();
|
||||
@@ -402,15 +401,21 @@ NotificationData::NotificationData(
|
||||
NotificationData::~NotificationData() {
|
||||
if (_dbusConnection) {
|
||||
if (_actionInvokedSignalId != 0) {
|
||||
g_dbus_connection_signal_unsubscribe(_dbusConnection, _actionInvokedSignalId);
|
||||
g_dbus_connection_signal_unsubscribe(
|
||||
_dbusConnection,
|
||||
_actionInvokedSignalId);
|
||||
}
|
||||
|
||||
if (_notificationRepliedSignalId != 0) {
|
||||
g_dbus_connection_signal_unsubscribe(_dbusConnection, _notificationRepliedSignalId);
|
||||
g_dbus_connection_signal_unsubscribe(
|
||||
_dbusConnection,
|
||||
_notificationRepliedSignalId);
|
||||
}
|
||||
|
||||
if (_notificationClosedSignalId != 0) {
|
||||
g_dbus_connection_signal_unsubscribe(_dbusConnection, _notificationClosedSignalId);
|
||||
g_dbus_connection_signal_unsubscribe(
|
||||
_dbusConnection,
|
||||
_notificationClosedSignalId);
|
||||
}
|
||||
|
||||
g_object_unref(_dbusConnection);
|
||||
@@ -647,7 +652,7 @@ std::unique_ptr<Window::Notifications::Manager> Create(
|
||||
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
|
||||
if ((Core::App().settings().nativeNotifications() && Supported())
|
||||
|| Platform::IsWayland()) {
|
||||
|| IsWayland()) {
|
||||
return std::make_unique<Manager>(system);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user