|
|
|
@ -177,12 +177,13 @@ void Window::create_menu() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
menu.action_group->add(Gtk::Action::create("FileSave", "Save"), Gtk::AccelKey(menu.key_map["save"]), [this]() { |
|
|
|
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_page()!=-1) { |
|
|
|
if(notebook.get_current_view()->file_path==Singleton::config_dir()+"config.json") { |
|
|
|
if(notebook.get_current_view()->file_path==Singleton::config_dir()+"config.json") { |
|
|
|
configure(); |
|
|
|
configure(); |
|
|
|
for(int c=0;c<notebook.size();c++) |
|
|
|
for(int c=0;c<notebook.size();c++) |
|
|
|
notebook.get_view(c)->configure(); |
|
|
|
notebook.get_view(c)->configure(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|