|
|
|
@ -250,6 +250,11 @@ void yon_load_proceed(YON_CONFIG_TYPE type){
|
|
|
|
char *path = NULL;
|
|
|
|
char *path = NULL;
|
|
|
|
path=yon_custom_config_init(GTK_FILE_CHOOSER_ACTION_OPEN);
|
|
|
|
path=yon_custom_config_init(GTK_FILE_CHOOSER_ACTION_OPEN);
|
|
|
|
if (!yon_char_is_empty(path)){
|
|
|
|
if (!yon_char_is_empty(path)){
|
|
|
|
|
|
|
|
if ((access(path,0)==F_OK&&access(path,4)!=F_OK)){
|
|
|
|
|
|
|
|
if (yon_status_box_is_set()){
|
|
|
|
|
|
|
|
yon_ubl_status_box_render(ACCESS_DENIED_LABEL(path),BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
yon_config_clean();
|
|
|
|
yon_config_clean();
|
|
|
|
yon_config_load_config(type,config_get_command(path),NULL);
|
|
|
|
yon_config_load_config(type,config_get_command(path),NULL);
|
|
|
|
yon_ubl_status_box_render(yon_char_get_localised_from_lib(LOCAL_LOAD_SUCCESS_LABEL),BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
yon_ubl_status_box_render(yon_char_get_localised_from_lib(LOCAL_LOAD_SUCCESS_LABEL),BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|