Add check for updates setting

This commit is contained in:
GriffinR
2024-01-20 23:02:43 -05:00
parent d6dfab1805
commit 09c2ed6b30
6 changed files with 49 additions and 6 deletions

View File

@@ -74,6 +74,7 @@ public:
this->paletteEditorBitDepth = 24;
this->projectSettingsTab = 0;
this->warpBehaviorWarningDisabled = false;
this->checkForUpdates = true;
}
void addRecentProject(QString project);
void setRecentProjects(QStringList projects);
@@ -105,6 +106,7 @@ public:
void setPaletteEditorBitDepth(int bitDepth);
void setProjectSettingsTab(int tab);
void setWarpBehaviorWarningDisabled(bool disabled);
void setCheckForUpdates(bool enabled);
QString getRecentProject();
QStringList getRecentProjects();
bool getReopenOnLaunch();
@@ -135,6 +137,7 @@ public:
int getPaletteEditorBitDepth();
int getProjectSettingsTab();
bool getWarpBehaviorWarningDisabled();
bool getCheckForUpdates();
protected:
virtual QString getConfigFilepath() override;
virtual void parseConfigKeyValue(QString key, QString value) override;
@@ -183,6 +186,7 @@ private:
int paletteEditorBitDepth;
int projectSettingsTab;
bool warpBehaviorWarningDisabled;
bool checkForUpdates;
};
extern PorymapConfig porymapConfig;

View File

@@ -400,7 +400,7 @@ private:
void addCustomHeaderValue(QString key, QJsonValue value, bool isNew = false);
int insertTilesetLabel(QStringList * list, QString label);
void checkForUpdates();
void checkForUpdates(bool requestedByUser);
};
enum MapListUserRoles {