Control input opacity;UpdateDefaults for saved currentPreset.
This commit is contained in:
@@ -308,6 +308,7 @@ void PiPedalModel::Load()
|
|||||||
if (storage.RestoreCurrentPreset(¤tPreset))
|
if (storage.RestoreCurrentPreset(¤tPreset))
|
||||||
{
|
{
|
||||||
this->pedalboard = currentPreset.preset_;
|
this->pedalboard = currentPreset.preset_;
|
||||||
|
this->UpdateDefaults(&pedalboard);
|
||||||
this->hasPresetChanged = currentPreset.modified_;
|
this->hasPresetChanged = currentPreset.modified_;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1103,12 +1103,11 @@ const PluginControl =
|
|||||||
|
|
||||||
min: this.props.uiControl?.min_value,
|
min: this.props.uiControl?.min_value,
|
||||||
max: this.props.uiControl?.max_value,
|
max: this.props.uiControl?.max_value,
|
||||||
opacity: this.state.editFocused ? 1 : 0,
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
sx={{
|
sx={{
|
||||||
// Style the input element
|
// Style the input element
|
||||||
'& input[type=number]': {
|
'& input': {
|
||||||
width: 60,
|
width: 60,
|
||||||
opacity: this.state.editFocused ? 1 : 0,
|
opacity: this.state.editFocused ? 1 : 0,
|
||||||
textAlign: "center", fontSize: FONT_SIZE,
|
textAlign: "center", fontSize: FONT_SIZE,
|
||||||
|
|||||||
Reference in New Issue
Block a user