mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Auto-open settings if there's only one post-shader
This commit is contained in:
parent
182355b258
commit
600cb907bd
1 changed files with 7 additions and 1 deletions
|
@ -280,7 +280,13 @@ void DisplayLayoutScreen::CreateViews() {
|
|||
leftColumn->Add(new ItemHeader(gr->T("Postprocessing shaders")));
|
||||
|
||||
std::set<std::string> alreadyAddedShader;
|
||||
settingsVisible_.resize(g_Config.vPostShaderNames.size());
|
||||
// If there's a single post shader and we're just entering the dialog,
|
||||
// auto-open the settings.
|
||||
if (settingsVisible_.empty() && g_Config.vPostShaderNames.size() == 1) {
|
||||
settingsVisible_.push_back(true);
|
||||
} else if (settingsVisible_.size() < g_Config.vPostShaderNames.size()) {
|
||||
settingsVisible_.resize(g_Config.vPostShaderNames.size());
|
||||
}
|
||||
|
||||
static ContextMenuItem postShaderContextMenu[] = {
|
||||
{ "Move Up", "I_ARROW_UP" },
|
||||
|
|
Loading…
Add table
Reference in a new issue