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
+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();
}
});
}
};