mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix crash at start up on trial version (when !ENABLE_SCRIPTING)
This commit is contained in:
parent
2418a075ca
commit
99a9ee49cb
@ -382,6 +382,11 @@ void AppMenus::reload()
|
||||
if (scriptsMenu) {
|
||||
delete scriptsMenu;
|
||||
delete m_rootMenu->findItemById("scripts_menu_separator");
|
||||
|
||||
// Remove scripts group
|
||||
auto it = m_groups.find("file_scripts");
|
||||
if (it != m_groups.end())
|
||||
m_groups.erase(it);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user