From 0c703207eacf7530420fa9b4172056867736de5e Mon Sep 17 00:00:00 2001 From: fledge68 Date: Fri, 25 Jan 2013 16:55:33 +0000 Subject: [PATCH] - small fix for source menu buttons with more than one magic # --- source/menu/menu_source.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/source/menu/menu_source.cpp b/source/menu/menu_source.cpp index b98575f3..1df5b84b 100644 --- a/source/menu/menu_source.cpp +++ b/source/menu/menu_source.cpp @@ -584,19 +584,16 @@ bool CMenu::_Source() { string magic = *itr; if(m_cfg.getBool("PLUGIN", magic, false))// if plugin btn on turn it off - { - _checkForSinglePlugin(); - if(enabledPluginsCount == 1) // if last plugin leave it set but turn domain off - m_cfg.setBool(PLUGIN_DOMAIN, "source", false); - else - m_cfg.setBool("PLUGIN", magic, false); - } - else // turn on plugin btn + m_cfg.setBool("PLUGIN", magic, false); + else // turn on plugin btn and domain just in case it's the firtst plugin on { m_cfg.setBool(PLUGIN_DOMAIN, "source", true); m_cfg.setBool("PLUGIN", magic, true); } } + _checkForSinglePlugin(); + if(enabledPluginsCount == 0) // if last plugin turn domain off + m_cfg.setBool(PLUGIN_DOMAIN, "source", false); } break; }