mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
The 'Custom game collections' menu entry is now grayed out if there are no custom collections.
This commit is contained in:
parent
05bcb9b011
commit
775674a77f
|
@ -148,6 +148,15 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(Window* window, std::st
|
|||
}
|
||||
});
|
||||
|
||||
// If there are no custom collections, then gray out this menu entry.
|
||||
if (customSystems.empty()) {
|
||||
collection_systems_custom->setEnabled(false);
|
||||
collection_systems_custom->setOpacity(DISABLED_OPACITY);
|
||||
collection_systems_custom->getParent()
|
||||
->getChild(collection_systems_custom->getChildIndex() - 1)
|
||||
->setOpacity(DISABLED_OPACITY);
|
||||
}
|
||||
|
||||
// Create custom collection from theme.
|
||||
std::vector<std::string> unusedFolders =
|
||||
CollectionSystemsManager::get()->getUnusedSystemsFromTheme();
|
||||
|
|
Loading…
Reference in a new issue