Add script load warning

This commit is contained in:
GriffinR
2023-02-09 11:28:55 -05:00
parent e710567400
commit 7dacfeb52b
4 changed files with 36 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ public:
this->theme = "default";
this->textEditorOpenFolder = "";
this->textEditorGotoLine = "";
this->warnScriptLoad = true;
}
void setRecentProject(QString project);
void setReopenOnLaunch(bool enabled);
@@ -78,6 +79,7 @@ public:
void setShowGrid(bool enabled);
void setMonitorFiles(bool monitor);
void setTilesetCheckerboardFill(bool checkerboard);
void setWarnScriptLoad(bool enabled);
void setTheme(QString theme);
void setTextEditorOpenFolder(const QString &command);
void setTextEditorGotoLine(const QString &command);
@@ -97,6 +99,7 @@ public:
bool getShowGrid();
bool getMonitorFiles();
bool getTilesetCheckerboardFill();
bool getWarnScriptLoad();
QString getTheme();
QString getTextEditorOpenFolder();
QString getTextEditorGotoLine();
@@ -132,6 +135,7 @@ private:
bool showGrid;
bool monitorFiles;
bool tilesetCheckerboardFill;
bool warnScriptLoad;
QString theme;
QString textEditorOpenFolder;
QString textEditorGotoLine;

View File

@@ -61,6 +61,7 @@ public:
static QJSValue dialogInput(QJSValue input, bool selectedOk);
private:
MainWindow *mainWindow;
QJSEngine *engine;
QStringList filepaths;
QList<QJSValue> modules;