Made sure we redrew things, added in a contingency in 'save' for times when we load a non-existent file, and added some checks.

This commit is contained in:
Adam Harrison
2022-05-15 15:25:02 -04:00
committed by jgmdev
parent 5a0d213f3b
commit daeb2a8e04
3 changed files with 34 additions and 44 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ int translate_changes_dirmonitor(struct dirmonitor_internal* monitor, char* buff
int add_dirmonitor(struct dirmonitor_internal* monitor, const char* path) {
return inotify_add_watch(monitor->fd, path, IN_CREATE | IN_DELETE | IN_MOVED_FROM | IN_MOVED_TO);
return inotify_add_watch(monitor->fd, path, IN_CREATE | IN_DELETE | IN_MOVED_FROM | IN_MODIFY | IN_MOVED_TO);
}