* fix build

* fixing build integrationg zoom

---------

Co-authored-by: GullCode <gullradriel@hotmail.com>
This commit is contained in:
gullradriel 2023-06-29 22:58:10 +02:00 committed by GitHub
parent ca7840557b
commit 3d46c28911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -274,7 +274,7 @@ TextEditorMenu::TextEditorMenu()
&rect_frame,
&button_home,
&button_end,
&button_copy,
&button_zoom,
&button_delline,
&button_edit,
&button_addline,
@ -333,7 +333,10 @@ TextEditorView::TextEditorView(NavigationView& nav)
hide_menu(true);
};
menu.on_copy() = [this]() {
menu.on_zoom() = [this]() {
viewer.toggle_font_zoom();
refresh_ui();
hide_menu(true);
};
menu.on_delete_line() = [this]() {

View File

@ -130,7 +130,7 @@ class TextEditorMenu : public View {
std::function<void()>& on_home() { return button_home.on_select; }
std::function<void()>& on_end() { return button_end.on_select; }
std::function<void()>& on_copy() { return button_copy.on_select; }
std::function<void()>& on_zoom() { return button_zoom.on_select; }
std::function<void()>& on_delete_line() { return button_delline.on_select; }
std::function<void()>& on_edit_line() { return button_edit.on_select; }
std::function<void()>& on_add_line() { return button_addline.on_select; }