Add new animations engine.

This commit is contained in:
John Preston
2019-02-04 16:34:50 +03:00
parent 92332b45ea
commit 9a616edf2a
19 changed files with 514 additions and 77 deletions
@@ -10,7 +10,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mainwindow.h"
#include "mainwidget.h"
#include "core/application.h"
#include "core/sandbox.h"
#include "core/crash_reports.h"
#include "storage/localstorage.h"
#include "media/audio/media_audio.h"
@@ -142,13 +141,11 @@ ApplicationDelegate *_sharedDelegate = nil;
- (void) applicationDidBecomeActive:(NSNotification *)aNotification {
ApplicationIsActive = true;
if (Core::Sandbox::Instance().applicationLaunched()) {
if (!_ignoreActivation) {
Core::App().handleAppActivated();
if (auto window = App::wnd()) {
if (window->isHidden()) {
window->showFromTray();
}
if (Core::IsAppLaunched() && !_ignoreActivation) {
Core::App().handleAppActivated();
if (auto window = App::wnd()) {
if (window->isHidden()) {
window->showFromTray();
}
}
}
@@ -159,7 +156,7 @@ ApplicationDelegate *_sharedDelegate = nil;
}
- (void) receiveWakeNote:(NSNotification*)aNotification {
if (Core::Sandbox::Instance().applicationLaunched()) {
if (Core::IsAppLaunched()) {
Core::App().checkLocalTime();
}