Reopen Porymap to last-opened map/layout

This commit is contained in:
GriffinR
2024-10-17 11:46:47 -04:00
parent b5c50e7660
commit 5e9ab4c7c7
5 changed files with 38 additions and 128 deletions

View File

@@ -406,8 +406,7 @@ public:
reset();
}
virtual void reset() override {
this->recentMap = QString();
this->recentLayout = QString();
this->recentMapOrLayout = QString();
this->useEncounterJson = true;
this->customScripts.clear();
this->readKeys.clear();
@@ -419,8 +418,7 @@ public:
QList<bool> getCustomScriptsEnabled();
QString projectDir;
QString recentMap;
QString recentLayout;
QString recentMapOrLayout;
bool useEncounterJson;
protected:

View File

@@ -373,8 +373,6 @@ private:
bool tilesetNeedsRedraw = false;
bool setDefaultView();
bool setRecentView();
bool setLayout(QString layoutId);
bool setMap(QString, bool scroll = false);
void unsetMap();
@@ -398,12 +396,6 @@ private:
QStandardItem* createMapItem(QString mapName, int groupNum, int inGroupNum);
bool setInitialMap();
bool setInitialLayout();
QString getDefaultMap();
QString getDefaultLayout();
void setRecentMapConfig(QString map_name);
void setRecentLayoutConfig(QString layoutId);
void saveGlobalConfigs();
void refreshRecentProjectsMenu();