mirror of https://github.com/odrling/Aegisub
Eliminate a pointless menu refresh when opening subtitle files
This commit is contained in:
parent
acb9b8adac
commit
0416188235
|
@ -360,11 +360,13 @@ namespace Automation4 {
|
|||
|
||||
void LocalScriptManager::Reload()
|
||||
{
|
||||
bool was_empty = scripts.empty();
|
||||
scripts.clear();
|
||||
|
||||
auto const& local_scripts = context->ass->Properties.automation_scripts;
|
||||
if (local_scripts.empty()) {
|
||||
ScriptsChanged();
|
||||
if (!was_empty)
|
||||
ScriptsChanged();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue