Automatically update themes list when a new theme is downloaded

This commit is contained in:
2017-09-04 02:42:27 -04:00
parent 3241544296
commit 5fc499ff78
4 changed files with 36 additions and 3 deletions

View File

@@ -29,6 +29,7 @@
#include "quirc/quirc.h"
#include "draw.h"
#include "fs.h"
#include "themes.h"
void init_qr(void)
{
@@ -187,5 +188,9 @@ Result http_get(char *url, char *path)
remake_file(path_to_file, ArchiveSD, size);
buf_to_file(size, path_to_file, ArchiveSD, (char*)buf);
add_theme(&themes_list, &theme_count, path_to_file, filename);
exit_qr();
return 0;
}