mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-14 03:45:35 -05:00
Enforce project folder for custom filepaths
This commit is contained in:
@@ -274,8 +274,8 @@ public:
|
||||
void setDefaultSecondaryTileset(QString tilesetName);
|
||||
void setFilePath(QString pathId, QString path);
|
||||
void setFilePath(ProjectFilePath pathId, QString path);
|
||||
QString getFilePath(QString defaultPath, bool allowDefault = true);
|
||||
QString getFilePath(ProjectFilePath pathId, bool allowDefault = true);
|
||||
QString getFilePath(QString defaultPath, bool customOnly = false);
|
||||
QString getFilePath(ProjectFilePath pathId, bool customOnly = false);
|
||||
void setPrefabFilepath(QString filepath);
|
||||
QString getPrefabFilepath();
|
||||
void setPrefabImportPrompted(bool prompted);
|
||||
|
||||
@@ -30,6 +30,7 @@ private:
|
||||
bool hasUnsavedChanges = false;
|
||||
bool projectNeedsReload = false;
|
||||
bool refreshing = false;
|
||||
const QString baseDir;
|
||||
|
||||
void initUi();
|
||||
void connectSignals();
|
||||
@@ -42,6 +43,7 @@ private:
|
||||
bool promptRestoreDefaults();
|
||||
|
||||
void createProjectPathsTable();
|
||||
QString chooseProjectFile(const QString &defaultFilepath);
|
||||
|
||||
private slots:
|
||||
void dialogButtonClicked(QAbstractButton *button);
|
||||
|
||||
Reference in New Issue
Block a user