Qt: Getting tired of pushing commits to fix the build without json-c

This commit is contained in:
Vicki Pfau 2023-02-08 21:15:51 -08:00
parent 3cbfaa010d
commit c709aee0f3
1 changed files with 4 additions and 0 deletions

View File

@ -149,7 +149,9 @@ void ScriptingController::runCode(const QString& code) {
}
void ScriptingController::flushStorage() {
#ifdef USE_JSON_C
mScriptStorageFlushAll(&m_scriptContext);
#endif
}
bool ScriptingController::eventFilter(QObject* obj, QEvent* ev) {
@ -320,7 +322,9 @@ void ScriptingController::init() {
m_activeEngine = *m_engines.begin();
}
#ifdef USE_JSON_C
m_storageFlush.start();
#endif
}
uint32_t ScriptingController::qtToScriptingKey(const QKeyEvent* event) {