FIX: [STUDIO-3720] limit max_recent_count characters

Change-Id: I61dd6d5adfd057c9d068ab94ce36d9ab2395002b
This commit is contained in:
maosheng.wei 2023-07-21 14:12:38 +08:00 committed by Lane.Wei
parent 0fc5c074cf
commit ea2aca6fb5

View file

@ -405,6 +405,8 @@ wxBoxSizer *PreferencesDialog::create_item_input(wxString title, wxString title2
StateColor input_bg(std::pair<wxColour, int>(wxColour("#F0F0F1"), StateColor::Disabled), std::pair<wxColour, int>(*wxWHITE, StateColor::Enabled));
input->SetBackgroundColor(input_bg);
input->GetTextCtrl()->SetValue(app_config->get(param));
wxTextValidator validator(wxFILTER_DIGITS);
input->GetTextCtrl()->SetValidator(validator);
auto second_title = new wxStaticText(parent, wxID_ANY, title2, wxDefaultPosition, DESIGN_TITLE_SIZE, 0);
second_title->SetForegroundColour(DESIGN_GRAY900_COLOR);