Removed create non-existent config dialog from forced config argument

pull/398/head
parent 093a1696c9
commit dcdc54a47c

@ -32,7 +32,7 @@ int yon_configuration_path_check(const char *path){
dialog_confirmation_data *data = yon_confirmation_dialog_data_new(); dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
data->action_text = homedir_create?CREATE_CONFIG_DIALOG_LABEL_HOMEDIR:CREATE_CONFIG_DIALOG_LABEL; data->action_text = homedir_create?CREATE_CONFIG_DIALOG_LABEL_HOMEDIR:CREATE_CONFIG_DIALOG_LABEL;
data->title = WARNING_TITLE_LABEL; data->title = WARNING_TITLE_LABEL;
if (yon_confirmation_dialog_call(NULL,data)==GTK_RESPONSE_ACCEPT){ if ((!yon_char_is_empty(main_config.force_ini)&&!strcmp(main_config.force_ini,path))||yon_confirmation_dialog_call(NULL,data)==GTK_RESPONSE_ACCEPT){
char *dir_path = yon_file_get_parent(full_path); char *dir_path = yon_file_get_parent(full_path);
if (access(full_path,F_OK)&&(access(dir_path,W_OK)||access(dir_path,R_OK))){ if (access(full_path,F_OK)&&(access(dir_path,W_OK)||access(dir_path,R_OK))){
if (system(ubconfig_file_create_pkexec(full_path))){ if (system(ubconfig_file_create_pkexec(full_path))){

Loading…
Cancel
Save