From 7e1b80e7dd02833123e9c8de9773350aa0887b3c Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 15 Dec 2023 10:40:56 +0600 Subject: [PATCH] Fixed saving status messages --- source/ubl-settings-logging.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/ubl-settings-logging.c b/source/ubl-settings-logging.c index d1210bd..91ce2f5 100644 --- a/source/ubl-settings-logging.c +++ b/source/ubl-settings-logging.c @@ -80,6 +80,12 @@ void on_save_parameters(GtkWidget *self, saving_window *window){ free(final_command); } } + if (window->type == YON_CONFIG_GLOBAL) + yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); + else if (window->type == YON_CONFIG_LOCAL) + yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); + else if (window->type == YON_CONFIG_BOTH) + yon_ubl_status_box_render(GLOBAL_LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); on_close_subwindow(self,"SavingWindow"); } @@ -422,19 +428,16 @@ void on_load_local(){ void on_save_global_local(){ yon_save_proceed(NULL,YON_CONFIG_BOTH,"logging", "JOURNALD[*] LOGROTATE[*]",NULL); - yon_ubl_status_box_render(GLOBAL_LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); } void on_save_global(){ yon_save_proceed("global",YON_CONFIG_GLOBAL,"logging", "JOURNALD[*] LOGROTATE[*]",NULL); - yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); } void on_save_local(){ yon_save_proceed("system",YON_CONFIG_LOCAL,"logging", "JOURNALD[*] LOGROTATE[*]",NULL); - yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); }