[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 10/15: Fix redundant hiding of menu.

noreply at xfce.org noreply at xfce.org
Fri Jul 13 13:26:58 CEST 2018


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

g   o   t   t   c   o   d   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       a   n   n   o   t   a   t   e   d       t   a   g       v   2   .   2   .   1   
   in repository panel-plugins/xfce4-whiskermenu-plugin.

commit b7cf32f7cc77860df332ce011c6466ed44d35327
Author: Graeme Gott <graeme at gottcode.org>
Date:   Thu Jul 5 10:45:06 2018 -0400

    Fix redundant hiding of menu.
---
 panel-plugin/plugin.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/plugin.cpp b/panel-plugin/plugin.cpp
index 5cf28a0..a9675ed 100644
--- a/panel-plugin/plugin.cpp
+++ b/panel-plugin/plugin.cpp
@@ -300,7 +300,10 @@ void Plugin::button_toggled(GtkToggleButton* button)
 {
 	if (gtk_toggle_button_get_active(button) == false)
 	{
-		m_window->hide();
+		if (gtk_widget_get_visible(m_window->get_widget()))
+		{
+			m_window->hide();
+		}
 		xfce_panel_plugin_block_autohide(m_plugin, false);
 	}
 	else

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list