mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	use device variable instead of getting the device from the map
This commit is contained in:
		@@ -110,7 +110,7 @@ void UPower::addDevice(UpDevice* device) {
 | 
			
		||||
  if (device) {
 | 
			
		||||
    const gchar* objectPath = up_device_get_object_path(device);
 | 
			
		||||
    devices[objectPath] = device;
 | 
			
		||||
    g_signal_connect(devices[objectPath], "notify", G_CALLBACK(deviceNotify_cb), this);
 | 
			
		||||
    g_signal_connect(device, "notify", G_CALLBACK(deviceNotify_cb), this);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user