2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 00:15:42 +00:00

Application->Sandbox, Messenger->Application.

This commit is contained in:
John Preston
2019-01-21 17:42:21 +04:00
parent 4111da1dd0
commit a70e72f75d
117 changed files with 1363 additions and 1239 deletions

View File

@@ -12,7 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "chat_helpers/tabbed_selector.h"
#include "window/window_controller.h"
#include "mainwindow.h"
#include "messenger.h"
#include "core/application.h"
#include "styles/style_chat_helpers.h"
namespace ChatHelpers {
@@ -192,7 +192,7 @@ void TabbedPanel::moveByBottom() {
}
void TabbedPanel::enterEventHook(QEvent *e) {
Messenger::Instance().registerLeaveSubscription(this);
Core::App().registerLeaveSubscription(this);
showAnimated();
}
@@ -204,7 +204,7 @@ bool TabbedPanel::preventAutoHide() const {
}
void TabbedPanel::leaveEventHook(QEvent *e) {
Messenger::Instance().unregisterLeaveSubscription(this);
Core::App().unregisterLeaveSubscription(this);
if (preventAutoHide()) {
return;
}