fix: try to avoid crash on image load when app is exiting (#6018)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
namespace chatterino::mock {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user