mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Fix potential crash when a thesaurus finishes loading
This commit is contained in:
parent
5cfb76fe9a
commit
cf79e521e4
@ -103,7 +103,7 @@ void Thesaurus::OnLanguageChanged() {
|
||||
agi::dispatch::Background().Async([=]{
|
||||
try {
|
||||
auto thes = agi::util::make_unique<agi::Thesaurus>(dat, idx);
|
||||
agi::dispatch::Main().Sync([&]{
|
||||
agi::dispatch::Main().Sync([&thes, this]{
|
||||
impl = std::move(thes);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user