fix headless mode
This commit is contained in:
parent
50f6c48771
commit
17e8d9bb1b
@ -1090,6 +1090,9 @@ static int l_gui_load_document(lua::State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int l_set_syntax_styles(lua::State* L) {
|
static int l_set_syntax_styles(lua::State* L) {
|
||||||
|
if (engine->isHeadless()) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
engine->getGUI().setSyntaxColorScheme(std::make_unique<FontStylesScheme>(
|
engine->getGUI().setSyntaxColorScheme(std::make_unique<FontStylesScheme>(
|
||||||
FontStylesScheme::parse(lua::tovalue(L, 1))
|
FontStylesScheme::parse(lua::tovalue(L, 1))
|
||||||
));
|
));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user