Fix windows being brought back to life after the settings dialog was closed (#2613)

Fixed with the help of @jammehcow
This commit is contained in:
pajlada 2021-04-11 16:22:32 +02:00 committed by GitHub
parent 8779303845
commit c9f62fed4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -90,6 +90,7 @@
- Bugfix: Fix quickswitcher not respecting order of tabs when filtering (#2519, #2561) - Bugfix: Fix quickswitcher not respecting order of tabs when filtering (#2519, #2561)
- Bugfix: Fix GNOME not associating Chatterino's window with its desktop entry (#1863, #2587) - Bugfix: Fix GNOME not associating Chatterino's window with its desktop entry (#1863, #2587)
- Bugfix: Fix buffer overflow in emoji parsing. (#2602) - Bugfix: Fix buffer overflow in emoji parsing. (#2602)
- Bugfix: Fix windows being brought back to life after the settings dialog was closed. (#1892, #2613)
- Dev: Updated minimum required Qt framework version to 5.12. (#2210) - Dev: Updated minimum required Qt framework version to 5.12. (#2210)
- Dev: Migrated `Kraken::getUser` to Helix (#2260) - Dev: Migrated `Kraken::getUser` to Helix (#2260)
- Dev: Migrated `TwitchAccount::(un)followUser` from Kraken to Helix and moved it to `Helix::(un)followUser`. (#2306) - Dev: Migrated `TwitchAccount::(un)followUser` from Kraken to Helix and moved it to `Helix::(un)followUser`. (#2306)

View file

@ -244,7 +244,10 @@ void BaseWindow::init()
getSettings()->windowTopMost.connect( getSettings()->windowTopMost.connect(
[this](bool topMost, auto) { [this](bool topMost, auto) {
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost); this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
if (this->isVisible())
{
this->show(); this->show();
}
}, },
this->managedConnections_); this->managedConnections_);
} }