Skip to content
Snippets Groups Projects
Commit dbed4f1a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix last commit... there are bits that aren't Seen that are saved

parent b376fc49
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -1441,10 +1441,12 @@ function save_cfg(lck)
lock_cfg();
cfgfile.rewind();
for(sub in saved_config) {
s = undefined;
if (saved_config[sub].Seen !== undefined) {
scpy = JSON.parse(JSON.stringify(saved_config[sub].Seen));
s=saved_config[sub].Seen;
delete saved_config[sub].Seen;
}
cfgfile.iniSetObject(sub,saved_config[sub]);
if(s != undefined) {
// First, try any "binary" Seen compression
......@@ -1455,7 +1457,6 @@ function save_cfg(lck)
cfgfile.iniRemoveSection(sub+'.seen');
if (Object.keys(s).length > 0)
cfgfile.iniSetObject(sub+'.seen',s);
}
saved_config[sub].Seen=scpy;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment