fix(launcher): popup titles not updating properly
This commit is contained in:
@@ -175,7 +175,13 @@ impl Launcher {
|
|||||||
let item = self.items.get_mut(&id);
|
let item = self.items.get_mut(&id);
|
||||||
|
|
||||||
if let (Some(item), Some(name)) = (item, window.name) {
|
if let (Some(item), Some(name)) = (item, window.name) {
|
||||||
|
let mut windows = item.windows.lock().unwrap();
|
||||||
|
if windows.len() == 1 {
|
||||||
item.set_title(&name, &self.button_config);
|
item.set_title(&name, &self.button_config);
|
||||||
|
} else {
|
||||||
|
windows.get_mut(&window.id).unwrap().name = Some(name);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user