Added cooldown for configuration updates

pull/12/head
parent b31163d84a
commit 34a2b3929e

@ -368,7 +368,7 @@ void on_info_clicked(GtkWidget *self, main_window *widgets){
}
void on_log_show(){
}
void *yon_unthreaded_config_load(void *widgets){
@ -388,6 +388,12 @@ void on_update(GtkWidget *self,main_window *widgets){
}
}
void *update_delay(void*){
sleep(1);
main_config.update_thread_active=0;
return NULL;
}
void *yon_interface_update(main_window *widgets){
int size;
GtkTreeIter iter;
@ -467,7 +473,8 @@ void *yon_interface_update(main_window *widgets){
}
textdomain(LocaleName);
gtk_tree_view_set_model(GTK_TREE_VIEW(widgets->MainTree),GTK_TREE_MODEL(widgets->liststore2));
main_config.update_thread_active=0;
g_thread_new("",(GThreadFunc)update_delay,NULL);
return NULL;
}

@ -232,6 +232,8 @@ void yon_main_window_complete(main_window *widgets);
void on_log_show();
void *update_delay(void*);
gboolean on_service_filter(GtkTreeModel *model, GtkTreeIter *iter,void *data);
gboolean on_socket_filter(GtkTreeModel *model, GtkTreeIter *iter,void *data);

Loading…
Cancel
Save