mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
NB Broken! Notifications refactored to Manager, only Windows working.
This commit is contained in:
@@ -35,7 +35,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
#include "core/observer.h"
|
||||
#include "observer_peer.h"
|
||||
#include "window/chat_background.h"
|
||||
#include "window/notifications_abstract_manager.h"
|
||||
#include "window/notifications_manager.h"
|
||||
#include "history/history_location_manager.h"
|
||||
|
||||
namespace {
|
||||
@@ -333,6 +333,10 @@ void Application::closeApplication() {
|
||||
if (App::launchState() == App::QuitProcessed) return;
|
||||
App::setLaunchState(App::QuitProcessed);
|
||||
|
||||
if (auto manager = Window::Notifications::manager()) {
|
||||
manager->clearAllFast();
|
||||
}
|
||||
|
||||
delete AppObject;
|
||||
AppObject = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user