mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 23:01:04 +02:00
refactor: address requested changes (3)
This commit is contained in:
parent
d5e4e08863
commit
2fd49e0f3a
4 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,6 @@ use color_eyre::Result;
|
|||
use gtk::prelude::*;
|
||||
use gtk::Label;
|
||||
use serde::Deserialize;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::mpsc;
|
||||
use tracing::debug;
|
||||
|
||||
|
@ -151,7 +150,7 @@ impl Module<gtk::Box> for FocusedModule {
|
|||
container.add(&label);
|
||||
|
||||
{
|
||||
let icon_overrides = Arc::new(info.icon_overrides.clone());
|
||||
let icon_overrides = info.icon_overrides.clone();
|
||||
let icon_theme = info.icon_theme.clone();
|
||||
|
||||
glib_recv!(context.subscribe(), data => {
|
||||
|
|
|
@ -165,7 +165,7 @@ impl Module<gtk::Box> for LauncherModule {
|
|||
let items = arc_mut!(items);
|
||||
let items2 = Arc::clone(&items);
|
||||
|
||||
let icon_overrides = Arc::new(info.icon_overrides.clone());
|
||||
let icon_overrides = info.icon_overrides.clone();
|
||||
|
||||
let tx = context.tx.clone();
|
||||
let tx2 = context.tx.clone();
|
||||
|
|
|
@ -72,7 +72,7 @@ pub struct ModuleInfo<'a> {
|
|||
pub monitor: &'a Monitor,
|
||||
pub output_name: &'a str,
|
||||
pub icon_theme: &'a IconTheme,
|
||||
pub icon_overrides: &'a HashMap<String, String>,
|
||||
pub icon_overrides: Arc<HashMap<String, String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue