Options from the "Preferences" dialog added to the Search

Some code refactoring:
* use GUI_App::open_preferences() on all places where it's needed
* Preferences Dialog is an attribute of a ManeFrame class and created just ones during the MainFrame creation now.
* Created class Highlighter. Use it in Preferences and Tab
This commit is contained in:
YuSanka 2021-12-22 14:38:23 +01:00
parent 1fe4ba289b
commit f2aeca3a71
18 changed files with 520 additions and 480 deletions

View file

@ -4010,8 +4010,11 @@ bool GLCanvas3D::_render_search_list(float pos_x)
action_taken = true;
else
sidebar.jump_to_option(selected);*/
if (selected != 9999)
if (selected != 9999) {
imgui->end(); // end imgui before the jump to option
sidebar.jump_to_option(selected);
return true;
}
action_taken = true;
}