mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	sni: Remove unnecessary getIconByName call
This commit is contained in:
		@@ -300,10 +300,6 @@ void Item::updateImage() {
 | 
				
			|||||||
  auto pixbuf = getIconPixbuf();
 | 
					  auto pixbuf = getIconPixbuf();
 | 
				
			||||||
  auto scaled_icon_size = getScaledIconSize();
 | 
					  auto scaled_icon_size = getScaledIconSize();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (!pixbuf) {
 | 
					 | 
				
			||||||
    pixbuf = getIconByName("image-missing", getScaledIconSize());
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // If the loaded icon is not square, assume that the icon height should match the
 | 
					  // If the loaded icon is not square, assume that the icon height should match the
 | 
				
			||||||
  // requested icon size, but the width is allowed to be different. As such, if the
 | 
					  // requested icon size, but the width is allowed to be different. As such, if the
 | 
				
			||||||
  // height of the image does not match the requested icon size, resize the icon such that
 | 
					  // height of the image does not match the requested icon size, resize the icon such that
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user