Improved documentation, added precautions to te json generation and loading specially for windows
This commit is contained in:
@@ -799,11 +799,7 @@ end
|
||||
end
|
||||
|
||||
# Save the updated registry
|
||||
lock(REGISTRY_LOCK) do
|
||||
open(reg_path, "w") do f
|
||||
JSON.print(f, registry, 4)
|
||||
end
|
||||
end
|
||||
save_registry(reg_path, registry)
|
||||
|
||||
@info "Registry updated with mask: $(final_mask_name)"
|
||||
|
||||
@@ -876,11 +872,7 @@ end
|
||||
|
||||
if !isempty(new_folders) || !isempty(removed_folders)
|
||||
println("Registry changed, saving...")
|
||||
lock(REGISTRY_LOCK) do
|
||||
open(reg_path, "w") do f
|
||||
JSON.print(f, registry, 4)
|
||||
end
|
||||
end
|
||||
save_registry(reg_path, registry)
|
||||
end
|
||||
|
||||
all_folders = sort(collect(keys(registry)), lt=natural)
|
||||
|
||||
Reference in New Issue
Block a user