diff --git a/source/ubl-settings-resourcequota.c b/source/ubl-settings-resourcequota.c
index ad66425..551d92b 100644
--- a/source/ubl-settings-resourcequota.c
+++ b/source/ubl-settings-resourcequota.c
@@ -794,6 +794,9 @@ void event_all(main_window *widgets) {
void main_event(main_window *widgets) {
/* Signal connection | Присоединение сигналов */
g_signal_connect(G_OBJECT(widgets->Window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
+
+ g_signal_connect(G_OBJECT(widgets->notebookMain), "switch-page", G_CALLBACK(select_page_notebook), NULL);
+
g_signal_connect(G_OBJECT(widgets->DocumentationMenuItem),"activate",G_CALLBACK(on_open_documentation_confirmation),WIKI_LINK);
g_signal_connect(G_OBJECT(widgets->AboutMenuItem),"activate",G_CALLBACK(on_about),NULL);
@@ -814,6 +817,17 @@ void main_event(main_window *widgets) {
g_signal_connect(G_OBJECT(widgets->SaveLocalMenuItem), "activate", G_CALLBACK(wrapper_system_save), widgets);
g_signal_connect(G_OBJECT(widgets->SaveMenuItem), "activate", G_CALLBACK(wrapper_all_save), widgets);
}
+gboolean select_page_notebook(
+ GtkNotebook* self,
+ gboolean object,
+ gpointer user_data
+) {
+ int menu = gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->notebookMain));
+ if (menu == 0 || menu == 2) {
+ yon_terminal_integrated_launch(widgets->vteDispatcher, "clear", NULL, NULL);
+ main_update_dispatcher();
+ }
+}
void wrapper_add_show(GtkWidget *self) {
add_show(NULL, glade_path);
g_signal_connect(G_OBJECT(get_widget_add()->btnSaveTempSave), "clicked", G_CALLBACK(main_add_btn_save), NULL);
diff --git a/source/ubl-settings-resourcequota.h b/source/ubl-settings-resourcequota.h
index 9640965..bcf988c 100644
--- a/source/ubl-settings-resourcequota.h
+++ b/source/ubl-settings-resourcequota.h
@@ -214,4 +214,5 @@ char* template_format_str_set_save(char* source_set_cmd);
char* save_format_key(int index);
void get_param_io_limit(char** arr_values, int index_start, int size, int index_n1, char *key_find);
char* add_io_str_format_ubconfig(char* cmd_io, char* key, int** i_o_limit, int** i_o_limit_size, char*** disk_read, int index);
-char* format_io_limit_in_tree_view(config_str* disk, int** i_o_limit, int** i_o_limit_size, int index);
\ No newline at end of file
+char* format_io_limit_in_tree_view(config_str* disk, int** i_o_limit, int** i_o_limit_size, int index);
+gboolean select_page_notebook(GtkNotebook* self, gboolean object, gpointer user_data);
\ No newline at end of file
diff --git a/ubl-settings-resourcequota.glade b/ubl-settings-resourcequota.glade
index ea4b257..0110e63 100644
--- a/ubl-settings-resourcequota.glade
+++ b/ubl-settings-resourcequota.glade
@@ -3702,6 +3702,12 @@ limit
False
+
+
+
+
+
+
True