From 68585f1a0dc1cb7e8cdfc2226efc0214f0b4a8be Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 20 Dec 2014 23:37:41 +0100 Subject: [PATCH] CFlashUpdate: add filters for packages --- src/gui/update.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index 7664dc950..11dd16758 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -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