2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 00:25:17 +00:00

Update online after the window active status.

I hope this fixes #26059.
This commit is contained in:
John Preston
2023-03-21 16:22:38 +04:00
parent f0a96d0aad
commit 58c5bb7247
4 changed files with 8 additions and 10 deletions

View File

@@ -115,16 +115,7 @@ MainWindow::MainWindow(not_null<Window::Controller*> controller)
void MainWindow::initHook() {
Platform::MainWindow::initHook();
QCoreApplication::instance()->installEventFilter(this);
// Non-queued activeChanged handlers must use QtSignalProducer.
connect(
windowHandle(),
&QWindow::activeChanged,
this,
[=] { checkActivation(); },
Qt::QueuedConnection);
}
void MainWindow::applyInitialWorkMode() {