mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
hiding, not destroying window on close on OS X, fixed app event filter
This commit is contained in:
@@ -990,7 +990,7 @@ bool Window::eventFilter(QObject *obj, QEvent *evt) {
|
||||
} else if (t == QEvent::MouseButtonRelease) {
|
||||
Ui::hideStickerPreview();
|
||||
}
|
||||
if (obj == App::app()) {
|
||||
if (obj == Application::instance()) {
|
||||
if (t == QEvent::ApplicationActivate) {
|
||||
psUserActionDone();
|
||||
QTimer::singleShot(1, this, SLOT(checkHistoryActivation()));
|
||||
@@ -1214,7 +1214,7 @@ void Window::toggleDisplayNotifyFromTray() {
|
||||
}
|
||||
|
||||
void Window::closeEvent(QCloseEvent *e) {
|
||||
if (MTP::authedId() && !Sandbox::isSavingSession() && minimizeToTray()) {
|
||||
if (MTP::authedId() && !Sandbox::isSavingSession() && Ui::hideWindowNoQuit()) {
|
||||
e->ignore();
|
||||
} else {
|
||||
App::quit();
|
||||
|
Reference in New Issue
Block a user