fix: fixed system tray open site link (#1686)

* added signal-slot connection between corecontroller and systemtraynofificationhandler updating websiteurl

* cleared up the commented lines
This commit is contained in:
Mitternacht822
2025-08-01 07:50:31 +04:00
committed by GitHub
parent d53c794936
commit d15c0bd962
4 changed files with 17 additions and 1 deletions

View File

@@ -243,6 +243,9 @@ void CoreController::initNotificationHandler()
&ConnectionController::closeConnection);
connect(this, &CoreController::translationsUpdated, m_notificationHandler.get(), &NotificationHandler::onTranslationsUpdated);
#endif
auto* trayHandler = qobject_cast<SystemTrayNotificationHandler*>(m_notificationHandler.get());
connect(this, &CoreController::websiteUrlChanged, trayHandler, &SystemTrayNotificationHandler::updateWebsiteUrl);
}
void CoreController::updateTranslator(const QLocale &locale)
@@ -279,6 +282,7 @@ void CoreController::updateTranslator(const QLocale &locale)
m_engine->retranslate();
emit translationsUpdated();
emit websiteUrlChanged(m_languageModel->getCurrentSiteUrl());
}
void CoreController::initErrorMessagesHandler()