Enable the Apply button in the preferences dialog after a color is changed
This commit is contained in:
parent
4accc988b3
commit
dab67c6267
1 changed files with 2 additions and 4 deletions
|
@ -635,14 +635,12 @@ void Interface_Hotkeys::OnUpdateFilter(wxCommandEvent&) {
|
|||
|
||||
void Preferences::SetOption(std::unique_ptr<agi::OptionValue> new_value) {
|
||||
pending_changes[new_value->GetName()] = std::move(new_value);
|
||||
if (IsEnabled())
|
||||
applyButton->Enable(true);
|
||||
applyButton->Enable(true);
|
||||
}
|
||||
|
||||
void Preferences::AddPendingChange(Thunk const& callback) {
|
||||
pending_callbacks.push_back(callback);
|
||||
if (IsEnabled())
|
||||
applyButton->Enable(true);
|
||||
applyButton->Enable(true);
|
||||
}
|
||||
|
||||
void Preferences::AddChangeableOption(std::string const& name) {
|
||||
|
|
Loading…
Reference in a new issue