mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fix: ignore save requests after closing all windows (#5081)
This commit is contained in:
parent
13ff11ea75
commit
292f9b9734
3 changed files with 13 additions and 1 deletions
|
@ -65,6 +65,7 @@
|
||||||
- Bugfix: Fixed avatar in usercard and moderation button triggering when releasing the mouse outside their area. (#5052)
|
- Bugfix: Fixed avatar in usercard and moderation button triggering when releasing the mouse outside their area. (#5052)
|
||||||
- Bugfix: Fixed moderator-only topics being subscribed to for non-moderators. (#5056)
|
- Bugfix: Fixed moderator-only topics being subscribed to for non-moderators. (#5056)
|
||||||
- Bugfix: Fixed a bug where buttons would remain in a hovered state after leaving them. (#5077)
|
- Bugfix: Fixed a bug where buttons would remain in a hovered state after leaving them. (#5077)
|
||||||
|
- Bugfix: Fixed popup windows not persisting between restarts. (#5081)
|
||||||
- Bugfix: Fixed splits not retaining their focus after minimizing. (#5080)
|
- Bugfix: Fixed splits not retaining their focus after minimizing. (#5080)
|
||||||
- Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978)
|
- Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978)
|
||||||
- Dev: Change clang-format from v14 to v16. (#4929)
|
- Dev: Change clang-format from v14 to v16. (#4929)
|
||||||
|
|
|
@ -421,7 +421,14 @@ void WindowManager::save()
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
qCDebug(chatterinoWindowmanager) << "[WindowManager] Saving";
|
|
||||||
|
if (this->shuttingDown_)
|
||||||
|
{
|
||||||
|
qCDebug(chatterinoWindowmanager) << "Skipping save (shutting down)";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
qCDebug(chatterinoWindowmanager) << "Saving";
|
||||||
assertInGuiThread();
|
assertInGuiThread();
|
||||||
QJsonDocument document;
|
QJsonDocument document;
|
||||||
|
|
||||||
|
@ -700,6 +707,9 @@ void WindowManager::closeAll()
|
||||||
{
|
{
|
||||||
assertInGuiThread();
|
assertInGuiThread();
|
||||||
|
|
||||||
|
qCDebug(chatterinoWindowmanager) << "Shutting down (closing windows)";
|
||||||
|
this->shuttingDown_ = true;
|
||||||
|
|
||||||
for (Window *window : windows_)
|
for (Window *window : windows_)
|
||||||
{
|
{
|
||||||
window->close();
|
window->close();
|
||||||
|
|
|
@ -140,6 +140,7 @@ private:
|
||||||
const QString windowLayoutFilePath;
|
const QString windowLayoutFilePath;
|
||||||
|
|
||||||
bool initialized_ = false;
|
bool initialized_ = false;
|
||||||
|
bool shuttingDown_ = false;
|
||||||
|
|
||||||
QPoint emotePopupPos_;
|
QPoint emotePopupPos_;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue