splitted pluginsettings away (nowhere displayed yet) fixed typo, actually hard to find
This commit is contained in:
parent
c38058b277
commit
30baf3e00d
@ -100,11 +100,17 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
|
|||||||
/** @var ManiaControl/SettingManager $this->maniaControl->settingManager */
|
/** @var ManiaControl/SettingManager $this->maniaControl->settingManager */
|
||||||
$settings = $this->maniaControl->settingManager->getSettings();
|
$settings = $this->maniaControl->settingManager->getSettings();
|
||||||
|
|
||||||
|
$pluginClasses = $this->maniaControl->pluginManager->getPluginClasses();
|
||||||
|
|
||||||
$pageFrames = array();
|
$pageFrames = array();
|
||||||
$y = 0;
|
$y = 0;
|
||||||
$index = 1;
|
$index = 1;
|
||||||
$prevClass = '';
|
$prevClass = '';
|
||||||
foreach($settings as $id => $setting) {
|
foreach($settings as $id => $setting) {
|
||||||
|
//Don't display Plugin Settings
|
||||||
|
if(array_search($setting->class, $pluginClasses) !== FALSE) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if(!isset($pageFrame)) {
|
if(!isset($pageFrame)) {
|
||||||
$pageFrame = new Frame();
|
$pageFrame = new Frame();
|
||||||
@ -228,8 +234,9 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
|
|||||||
|
|
||||||
foreach($configData[3] as $setting) {
|
foreach($configData[3] as $setting) {
|
||||||
$settingName = substr($setting['Name'], $prefixLength + 1);
|
$settingName = substr($setting['Name'], $prefixLength + 1);
|
||||||
$oldSetting = $maniaControlSettings[$settingName];
|
|
||||||
if($setting['Value'] == $oldSetting->value || $oldSetting->type = 'bool') {
|
$oldSetting = $maniaControlSettings[$settingName];
|
||||||
|
if($setting['Value'] == $oldSetting->value || $oldSetting->type == 'bool') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user