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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user