Add reopen on launch config option

This commit is contained in:
GriffinR
2022-07-04 15:47:03 -04:00
committed by Marcus Huderle
parent 4a41858e5b
commit a407fa9e17
3 changed files with 19 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ public:
}
virtual void reset() override {
this->recentProject = "";
this->reopenOnLaunch = true;
this->mapSortOrder = MapSortOrder::Group;
this->prettyCursors = true;
this->collisionOpacity = 50;
@@ -54,6 +55,7 @@ public:
this->textEditorGotoLine = "";
}
void setRecentProject(QString project);
void setReopenOnLaunch(bool enabled);
void setMapSortOrder(MapSortOrder order);
void setPrettyCursors(bool enabled);
void setMainGeometry(QByteArray, QByteArray, QByteArray, QByteArray);
@@ -72,6 +74,7 @@ public:
void setTextEditorOpenFolder(const QString &command);
void setTextEditorGotoLine(const QString &command);
QString getRecentProject();
bool getReopenOnLaunch();
MapSortOrder getMapSortOrder();
bool getPrettyCursors();
QMap<QString, QByteArray> getMainGeometry();
@@ -97,6 +100,7 @@ protected:
virtual void setUnreadKeys() override {};
private:
QString recentProject;
bool reopenOnLaunch;
QString stringFromByteArray(QByteArray);
QByteArray bytesFromString(QString);
MapSortOrder mapSortOrder;