PP3 sidecar files were triggering unwanted monitoring event (there was still some remaining even with Oduis' fix from issue #597). They are now filtered out : only files that have one of the retained (and then displayed) extensions are taken into account.
Works for both Windows and Linux (i don't know if MacOS version's is listening the directories). Note that contrary to the Branch3 version of the patch, the pp3 files are updated too when ranking the thumbs because this information is now part of the pp3 file.
This commit is contained in:
@@ -274,7 +274,11 @@ void ProcParams::setDefaults () {
|
||||
ppVersion = PPVERSION;
|
||||
}
|
||||
|
||||
int ProcParams::save (Glib::ustring fname) const {
|
||||
int ProcParams::save (Glib::ustring fname, Glib::ustring fname2) const {
|
||||
|
||||
if (!fname.length() && !fname2.length())
|
||||
return 0;
|
||||
|
||||
SafeKeyFile keyFile;
|
||||
|
||||
keyFile.set_string ("Version", "AppVersion", APPVERSION);
|
||||
@@ -531,15 +535,29 @@ int ProcParams::save (Glib::ustring fname) const {
|
||||
keyFile.set_string_list ("IPTC", iptc[i].field, values);
|
||||
}
|
||||
|
||||
FILE *f = safe_g_fopen (fname, "wt");
|
||||
|
||||
if (f==NULL)
|
||||
return 1;
|
||||
else {
|
||||
fprintf (f, "%s", keyFile.to_data().c_str());
|
||||
fclose (f);
|
||||
return 0;
|
||||
Glib::ustring sPParams = keyFile.to_data();
|
||||
|
||||
int error1, error2;
|
||||
error1 = write (fname , sPParams);
|
||||
error2 = write (fname2, sPParams);
|
||||
return error1 & error2;
|
||||
}
|
||||
|
||||
int ProcParams::write (Glib::ustring &fname, Glib::ustring &content) const {
|
||||
|
||||
int error = 0;
|
||||
if (fname.length()) {
|
||||
FILE *f;
|
||||
f = safe_g_fopen (fname, "wt");
|
||||
|
||||
if (f==NULL)
|
||||
error = 1;
|
||||
else {
|
||||
fprintf (f, "%s", content.c_str());
|
||||
fclose (f);
|
||||
}
|
||||
}
|
||||
return error;
|
||||
}
|
||||
|
||||
int ProcParams::load (Glib::ustring fname) {
|
||||
|
Reference in New Issue
Block a user