From dab67c62677e3265e8b846c3358f174d5f9de3ba Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 27 Jun 2014 11:10:28 -0700 Subject: [PATCH] Enable the Apply button in the preferences dialog after a color is changed --- src/preferences.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/preferences.cpp b/src/preferences.cpp index a9a35e93f..08d44cd7c 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -635,14 +635,12 @@ void Interface_Hotkeys::OnUpdateFilter(wxCommandEvent&) { void Preferences::SetOption(std::unique_ptr 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) {