mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Add option to show disabled targets in the configuration dialog.
Note that disabled targets support is not intended for use by end users. This is to make development (and testing of svn) easier and should get disabled for releases. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24513 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
69fe1ad830
commit
a9ab407f84
5 changed files with 268 additions and 217 deletions
|
|
@ -119,7 +119,8 @@ QStringList SystemInfo::platforms(enum SystemInfo::PlatformType type, QString va
|
|||
{
|
||||
QString target = systemInfos->value("platforms/"+a.at(i), "null").toString();
|
||||
// only add target if its not disabled
|
||||
if(systemInfos->value(target+"/status").toString() == "disabled")
|
||||
if(type != PlatformAllDisabled
|
||||
&& systemInfos->value(target+"/status").toString() == "disabled")
|
||||
continue;
|
||||
// report only base targets when PlatformBase is requested
|
||||
if(type == PlatformBase && target.contains('.'))
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ class SystemInfo : public QObject
|
|||
|
||||
enum PlatformType {
|
||||
PlatformAll,
|
||||
PlatformAllDisabled,
|
||||
PlatformBase,
|
||||
PlatformVariant
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue