Automatically update themes list when a new theme is downloaded
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user