CFlashUpdate: add filters for packages

Origin commit data
------------------
Commit: 68585f1a0d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-20 (Sat, 20 Dec 2014)
This commit is contained in:
2014-12-20 23:37:41 +01:00
parent 93b412354d
commit 19d094063a

View File

@@ -410,8 +410,10 @@ printf("[update] mode is %d\n", softupdate_mode);
CFileFilter UpdatesFilter;
if(allow_flash) UpdatesFilter.addFilter(FILEBROWSER_UPDATE_FILTER);
UpdatesFilter.addFilter("bin");
UpdatesFilter.addFilter("txt");
string filters[] = {"bin", "txt", "opk", "ipk"};
for(size_t i=0; i<sizeof(filters)/sizeof(filters[0]) ;i++)
UpdatesFilter.addFilter(filters[i]);
UpdatesBrowser.Filter = &UpdatesFilter;