|
|
|
|
@ -177,7 +177,7 @@ void Window::create_menu() {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
menu.action_group->add(Gtk::Action::create("FileSave", "Save"), Gtk::AccelKey(menu.key_map["save"]), [this]() { |
|
|
|
|
notebook.save_current(); |
|
|
|
|
if(notebook.save_current()) { |
|
|
|
|
if(notebook.get_current_page()!=-1) { |
|
|
|
|
if(notebook.get_current_view()->file_path==Singleton::config_dir()+"config.json") { |
|
|
|
|
configure(); |
|
|
|
|
@ -185,6 +185,7 @@ void Window::create_menu() {
|
|
|
|
|
notebook.get_view(c)->configure(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
menu.action_group->add(Gtk::Action::create("EditCopy", "Copy"), Gtk::AccelKey(menu.key_map["edit_copy"]), [this]() { |
|
|
|
|
|