Only show file watcher warning when Porymap is active

This commit is contained in:
GriffinR
2025-02-13 21:14:58 -05:00
parent f442f44f72
commit 3be7f54d05
4 changed files with 58 additions and 16 deletions

View File

@@ -367,7 +367,7 @@ private:
void scrollMapListToCurrentMap(MapTree *list);
void scrollMapListToCurrentLayout(MapTree *list);
void resetMapListFilters();
void showFileWatcherWarning(QString filepath);
void showFileWatcherWarning();
QString getExistingDirectory(QString);
bool openProject(QString dir, bool initial = false);
bool closeProject();

View File

@@ -71,7 +71,7 @@ public:
QMap<QString, QString> facingDirections;
ParseUtil parser;
QFileSystemWatcher fileWatcher;
QMap<QString, qint64> modifiedFileTimestamps;
QSet<QString> modifiedFiles;
bool usingAsmTilesets;
QSet<QString> disabledSettingsNames;
QSet<QString> topLevelMapFields;
@@ -252,6 +252,7 @@ public:
private:
QMap<QString, QString> mapSectionDisplayNames;
QMap<QString, qint64> modifiedFileTimestamps;
void updateLayout(Layout *);
@@ -259,6 +260,7 @@ private:
void setNewLayoutBorder(Layout *layout);
void ignoreWatchedFileTemporarily(QString filepath);
void recordFileChange(const QString &filepath);
static int num_tiles_primary;
static int num_tiles_total;
@@ -270,7 +272,7 @@ private:
static int max_object_events;
signals:
void fileChanged(QString filepath);
void fileChanged(const QString &filepath);
void mapLoaded(Map *map);
void mapCreated(Map *newMap, const QString &groupName);
void layoutCreated(Layout *newLayout);