Merge pull request #2963 from defnax/update-homelogo

Fix to load the right logo without restart too
This commit is contained in:
csoler 2025-07-07 22:00:19 +02:00 committed by GitHub
commit bfa3e557a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -382,6 +382,13 @@ void HomePage::openWebHelp()
QDesktopServices::openUrl(QUrl(QString("https://retrosharedocs.readthedocs.io/en/latest/"))); QDesktopServices::openUrl(QUrl(QString("https://retrosharedocs.readthedocs.io/en/latest/")));
} }
void HomePage::showEvent(QShowEvent *event)
{
if (!event->spontaneous()) {
updateHomeLogo();
}
}
void HomePage::updateHomeLogo() void HomePage::updateHomeLogo()
{ {
if (Settings->getSheetName() == ":Standard_Dark") if (Settings->getSheetName() == ":Standard_Dark")

View file

@ -51,6 +51,8 @@ public:
void getOwnCert(QString& invite,QString& description) const; void getOwnCert(QString& invite,QString& description) const;
RetroshareInviteFlags currentInviteFlags() const ; RetroshareInviteFlags currentInviteFlags() const ;
virtual void showEvent(QShowEvent *) override;
private slots: private slots:
#ifdef DEAD_CODE #ifdef DEAD_CODE
void certContextMenu(QPoint); void certContextMenu(QPoint);