This is an automated email from the git hooks/post-receive script.

ToZ pushed a commit 
to branch master
in repository panel-plugins/xfce4-genmon-plugin.

commit 9bf41971898c20fddefc6fd336478100ac069f56
Author: ToZ <tony.pau...@gmail.com>
Date:   Sat Apr 4 13:19:37 2020 -0400

    Closing config window cancels changes
---
 panel-plugin/main.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 203c72f..2077c09 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -831,12 +831,14 @@ static void ChooseFont (GtkWidget *p_wPB, void 
*p_pvPlugin)
 static void genmon_dialog_response (GtkWidget *dlg, int response,
     genmon_t *genmon)
 {
-    UpdateConf (genmon);
-    gtk_widget_destroy (dlg);
-    xfce_panel_plugin_unblock_menu (genmon->plugin);
-    genmon_write_config (genmon->plugin, genmon);
-    /* Do not wait the next timer to update display */
-    DisplayCmdOutput (genmon);
+       if (response == GTK_RESPONSE_OK) {
+               UpdateConf (genmon);
+               genmon_write_config (genmon->plugin, genmon);
+               /* Do not wait the next timer to update display */
+               DisplayCmdOutput (genmon);
+       }
+       gtk_widget_destroy (dlg);
+       xfce_panel_plugin_unblock_menu (genmon->plugin);
 }
 
 static void genmon_create_options (XfcePanelPlugin *plugin,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to