|
|
|
|
@ -147,7 +147,7 @@ void Window::set_menu_actions() {
|
|
|
|
|
notebook.open(Singleton::config->juci_home_path()/"config"/"config.json"); |
|
|
|
|
}); |
|
|
|
|
menu->add_action("quit", [this]() { |
|
|
|
|
hide(); |
|
|
|
|
close(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
menu->add_action("new_file", [this]() { |
|
|
|
|
@ -678,18 +678,13 @@ bool Window::on_key_press_event(GdkEventKey *event) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool Window::on_delete_event(GdkEventAny *event) { |
|
|
|
|
hide(); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Window::hide() { |
|
|
|
|
auto size=notebook.size(); |
|
|
|
|
for(int c=0;c<size;c++) { |
|
|
|
|
if(!notebook.close_current_page()) |
|
|
|
|
return; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
Singleton::terminal->kill_async_executes(); |
|
|
|
|
Gtk::Window::hide(); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Window::search_and_replace_entry() { |
|
|
|
|
|