From dcdc54a47c328dd4473a63377aa13fff6b417a8b Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 23 Apr 2026 09:10:04 +0600 Subject: [PATCH] Removed create non-existent config dialog from forced config argument --- source/ubinstall-gtk-configuration-mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-configuration-mode.c b/source/ubinstall-gtk-configuration-mode.c index 32311cf..85ac687 100644 --- a/source/ubinstall-gtk-configuration-mode.c +++ b/source/ubinstall-gtk-configuration-mode.c @@ -32,7 +32,7 @@ int yon_configuration_path_check(const char *path){ dialog_confirmation_data *data = yon_confirmation_dialog_data_new(); data->action_text = homedir_create?CREATE_CONFIG_DIALOG_LABEL_HOMEDIR:CREATE_CONFIG_DIALOG_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); if (access(full_path,F_OK)&&(access(dir_path,W_OK)||access(dir_path,R_OK))){ if (system(ubconfig_file_create_pkexec(full_path))){