mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-31 17:41:16 +00:00
Native notifications switched off by default. Libnotify supported.
This commit is contained in:
@@ -22,6 +22,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
#include "platform/linux/main_window_linux.h"
|
||||
|
||||
#include "platform/linux/linux_libs.h"
|
||||
#include "platform/platform_notifications_manager.h"
|
||||
#include "mainwindow.h"
|
||||
#include "application.h"
|
||||
#include "lang.h"
|
||||
@@ -355,6 +356,10 @@ void MainWindow::psUpdateCounter() {
|
||||
}
|
||||
}
|
||||
|
||||
bool MainWindow::psHasNativeNotifications() {
|
||||
return Notifications::supported();
|
||||
}
|
||||
|
||||
void MainWindow::LibsLoaded() {
|
||||
QString cdesktop = QString(getenv("XDG_CURRENT_DESKTOP")).toLower();
|
||||
noQtTrayIcon = (cdesktop == qstr("pantheon")) || (cdesktop == qstr("gnome"));
|
||||
|
||||
Reference in New Issue
Block a user