Fixed: push notifications on VPN connect/disconnect

This commit is contained in:
dranik
2026-05-04 23:38:27 +03:00
parent 009ca981d5
commit 6087375fb0
17 changed files with 238 additions and 17 deletions
@@ -407,9 +407,12 @@ void CoreSignalHandlers::initNotificationHandler()
&ConnectionUiController::closeConnection);
connect(m_coreController, &CoreController::translationsUpdated, m_coreController->m_notificationHandler, &NotificationHandler::onTranslationsUpdated);
auto* trayHandler = qobject_cast<SystemTrayNotificationHandler*>(m_coreController->m_notificationHandler);
connect(m_coreController, &CoreController::websiteUrlChanged, trayHandler, &SystemTrayNotificationHandler::updateWebsiteUrl);
#endif
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS)
if (auto *trayHandler = qobject_cast<SystemTrayNotificationHandler *>(m_coreController->m_notificationHandler)) {
connect(m_coreController, &CoreController::websiteUrlChanged, trayHandler, &SystemTrayNotificationHandler::updateWebsiteUrl);
}
#endif
#endif
}
void CoreSignalHandlers::initUpdateFoundHandler()