2
0
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:
John Preston
2016-10-02 16:54:27 +03:00
parent a41e0c4aa7
commit 0bf55835f5
39 changed files with 702 additions and 612 deletions

View File

@@ -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;