mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
Revert to BBL get_line function
This commit is contained in:
parent
9f44e151ba
commit
7c02b5c9f4
2 changed files with 3 additions and 10 deletions
|
@ -140,7 +140,7 @@ public:
|
|||
// create controls for the option group
|
||||
void activate_line(Line& line);
|
||||
//BBS: get line for opt_key
|
||||
// Line* get_line(const std::string& opt_key);
|
||||
Line* get_line(const std::string& opt_key);
|
||||
|
||||
// create all controls for the option group from the m_lines
|
||||
bool activate(std::function<void()> throw_if_canceled = [](){}, int horiz_alignment = wxALIGN_LEFT);
|
||||
|
@ -157,13 +157,6 @@ public:
|
|||
return m_fields.at(id).get();
|
||||
}
|
||||
|
||||
inline Line* get_line(const t_config_option_key& id) {
|
||||
for (Line& line : m_lines)
|
||||
if (line.has_only_option(id))
|
||||
return &line;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool set_value(const t_config_option_key& id, const boost::any& value, bool change_event = false) {
|
||||
if (m_fields.find(id) == m_fields.end()) return false;
|
||||
m_fields.at(id)->set_value(value, change_event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue