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:
parent
bf4e86bb9e
commit
ed2f49b28f
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue