mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
COPKGManager: add filter for ipk packages
This commit is contained in:
@@ -139,8 +139,11 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
|
|||||||
if (actionKey == "local_package") {
|
if (actionKey == "local_package") {
|
||||||
if (parent)
|
if (parent)
|
||||||
parent->hide();
|
parent->hide();
|
||||||
|
|
||||||
CFileFilter fileFilter;
|
CFileFilter fileFilter;
|
||||||
fileFilter.addFilter("opk");
|
string filters[] = {"opk", "ipk"};
|
||||||
|
for(size_t i=0; i<sizeof(filters)/sizeof(filters[0]) ;i++)
|
||||||
|
fileFilter.addFilter(filters[i]);
|
||||||
|
|
||||||
CFileBrowser fileBrowser;
|
CFileBrowser fileBrowser;
|
||||||
fileBrowser.Filter = &fileFilter;
|
fileBrowser.Filter = &fileFilter;
|
||||||
|
Reference in New Issue
Block a user