1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

fix(launcher): popup titles not updating properly

This commit is contained in:
Jake Stanger 2022-08-14 14:47:28 +01:00
parent bf4e86bb9e
commit ed2f49b28f
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -175,7 +175,13 @@ impl Launcher {
let item = self.items.get_mut(&id);
if let (Some(item), Some(name)) = (item, window.name) {
item.set_title(&name, &self.button_config);
let mut windows = item.windows.lock().unwrap();
if windows.len() == 1 {
item.set_title(&name, &self.button_config);
} else {
windows.get_mut(&window.id).unwrap().name = Some(name);
}
}
}