mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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…
x
Reference in New Issue
Block a user