Browse Source

Now clears spellcheck errors first when using spellcheck in menu

merge-requests/365/head
eidheim 9 years ago
parent
commit
6a46babfab
  1. 4
      src/window.cc

4
src/window.cc

@ -414,8 +414,10 @@ void Window::set_menu_actions() {
});
menu.add_action("source_spellcheck", [this]() {
if(auto view=Notebook::get().get_current_view())
if(auto view=Notebook::get().get_current_view()) {
view->remove_spellcheck_errors();
view->spellcheck();
}
});
menu.add_action("source_spellcheck_clear", [this]() {
if(auto view=Notebook::get().get_current_view())

Loading…
Cancel
Save