🥅 only check menu if speciifed in the conf
This commit is contained in:
		
							parent
							
								
									21751b2faa
								
							
						
					
					
						commit
						c3581fb66b
					
				|  | @ -134,11 +134,14 @@ bool AModule::handleUserEvent(GdkEventButton* const& e) { | ||||||
|     format = rec->second; |     format = rec->second; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   // Check if the event is the one specified for the "menu" option
 |   // Check that a menu has been configured
 | ||||||
|   if (rec->second == config_["menu"].asString()) { |   if (config_["menu"].isString()) { | ||||||
|     // Popup the menu
 |     // Check if the event is the one specified for the "menu" option
 | ||||||
|     gtk_widget_show_all(GTK_WIDGET(menu_)); |     if (rec->second == config_["menu"].asString()) { | ||||||
|     gtk_menu_popup_at_pointer(GTK_MENU(menu_), reinterpret_cast<GdkEvent*>(e)); |       // Popup the menu
 | ||||||
|  |       gtk_widget_show_all(GTK_WIDGET(menu_)); | ||||||
|  |       gtk_menu_popup_at_pointer(GTK_MENU(menu_), reinterpret_cast<GdkEvent*>(e)); | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|   // Second call user scripts
 |   // Second call user scripts
 | ||||||
|   if (!format.empty()) { |   if (!format.empty()) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue