fix: try to avoid crash on image load when app is exiting (#6018)

This commit is contained in:
pajlada
2025-03-02 18:27:18 +01:00
committed by GitHub
parent 706e65cd1e
commit d7166fae9f
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@
- Bugfix: Fixed a potential way to escape the Lua Plugin sandbox. (#5846)
- Bugfix: Fixed a crash relating to Lua HTTP. (#5800)
- Bugfix: Fixed a crash that could occur on Linux and macOS when clicking "Install" from the update prompt. (#5818)
- Bugfix: Fixed a crash related to image loading that could occur when closing Chatterino. (#6018)
- Bugfix: Fixed missing word wrap in update popup. (#5811)
- Bugfix: Fixed tabs not scaling to the default scale when changing the scale from a non-default value. (#5794)
- Bugfix: Closing a usercard will no longer cause stop-logging messages to be generated in channel logs. (#5828)
+1
View File
@@ -7,6 +7,7 @@
#include <QString>
#include <QStringList>
#include <functional>
#include <vector>
namespace chatterino::mock {
+5 -1
View File
@@ -245,7 +245,11 @@ void assignFrames(std::weak_ptr<Image> weak, QList<Frame> parsed)
isPushQueued = true;
postToThread([] {
isPushQueued = false;
getApp()->getWindows()->forceLayoutChannelViews();
auto *app = tryGetApp();
if (app != nullptr)
{
app->getWindows()->forceLayoutChannelViews();
}
});
}
};