mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-13 11:25:42 -05:00
Add script load warning
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -61,6 +61,7 @@ public:
|
||||
static QJSValue dialogInput(QJSValue input, bool selectedOk);
|
||||
|
||||
private:
|
||||
MainWindow *mainWindow;
|
||||
QJSEngine *engine;
|
||||
QStringList filepaths;
|
||||
QList<QJSValue> modules;
|
||||
|
||||
Reference in New Issue
Block a user