[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 02/08: Closing config window cancels changes
noreply at xfce.org
noreply at xfce.org
Sat Apr 4 19:26:05 CEST 2020
This is an automated email from the git hooks/post-receive script.
T o Z p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-genmon-plugin.
commit 9bf41971898c20fddefc6fd336478100ac069f56
Author: ToZ <tony.paulic at 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.
More information about the Xfce4-commits
mailing list