Fix right/middle click network icon to configure
This commit is contained in:
		
							parent
							
								
									812eb28abc
								
							
						
					
					
						commit
						86e4404660
					
				
					 4 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -621,7 +621,7 @@ class NetworkInfoWidget(DualPaneTextboxBase):
 | 
			
		|||
        ('critical_color', "#ffffff", "Color when value is critical"),
 | 
			
		||||
        ('wireless_interface', "wifi0", "Wireless interface device name"),
 | 
			
		||||
        ('wired_interface', "enp7s0", "Wired interface device name"),
 | 
			
		||||
        ('config_application', "true", "Application to launch when right/middle clicking"),
 | 
			
		||||
        ('config_application', None, "Application to launch when right/middle clicking"),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    def __init__(self, **config):
 | 
			
		||||
| 
						 | 
				
			
			@ -748,7 +748,7 @@ class NetworkInfoWidget(DualPaneTextboxBase):
 | 
			
		|||
                notify(None, title, "{}\n\n{}".format(wifi_text, wired_text))
 | 
			
		||||
            else:
 | 
			
		||||
                notify(None, title, "\n{}".format(wired_text))
 | 
			
		||||
        if button == BUTTON_LEFT or button == BUTTON_MIDDLE:
 | 
			
		||||
        if button == BUTTON_RIGHT or button == BUTTON_MIDDLE:
 | 
			
		||||
            if self.config_application:
 | 
			
		||||
                execute(self.config_application)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue