2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Completely removed common and platform code for tray from main window.

This commit is contained in:
23rd
2022-04-21 22:33:27 +03:00
parent 9de372d715
commit 0e16a50bbc
12 changed files with 4 additions and 244 deletions

View File

@@ -491,9 +491,6 @@ void MainWindow::handleActiveChanged() {
if (isActiveWindow()) {
Core::App().checkMediaViewActivation();
}
InvokeQueued(this, [=] {
handleActiveChangedHook();
});
}
void MainWindow::handleVisibleChanged(bool visible) {
@@ -765,16 +762,6 @@ void MainWindow::setPositionInited() {
_positionInited = true;
}
void MainWindow::attachToTrayIcon(not_null<QSystemTrayIcon*> icon) {
icon->setToolTip(AppName.utf16());
connect(icon, &QSystemTrayIcon::activated, this, [=](
QSystemTrayIcon::ActivationReason reason) {
Core::Sandbox::Instance().customEnterFromEventLoop([&] {
handleTrayIconActication(reason);
});
});
}
rpl::producer<> MainWindow::leaveEvents() const {
return _leaveEvents.events();
}
@@ -903,7 +890,6 @@ bool MainWindow::minimizeToTray() {
closeWithoutDestroy();
controller().updateIsActiveBlur();
updateGlobalMenu();
showTrayTooltip();
return true;
}