mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: take reference into image provider
This commit is contained in:
parent
df4bfc83d0
commit
cc6f21ed68
7 changed files with 11 additions and 10 deletions
|
@ -210,7 +210,7 @@ impl Module<gtk::Button> for UpowerModule {
|
|||
icon_name.push_str(&properties.icon_name);
|
||||
|
||||
ImageProvider::parse(&icon_name, &icon_theme, false, self.icon_size)
|
||||
.map(|provider| provider.load_into_image(icon.clone()));
|
||||
.map(|provider| provider.load_into_image(&icon));
|
||||
|
||||
label.set_label_escaped(&format);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue