fix: try to avoid crash on image load when app is exiting (#6018)
This commit is contained in:
@@ -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