mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 22:31:03 +02:00
fix(workspaces): prevent crash when clicking current workspace (#733)
* fix(workspaces): prevent crash on hyprland error * fix(workspaces): typo in warning message * refactor: fix format --------- Co-authored-by: Leshu <leshuguita.saiyan@gmail.com>
This commit is contained in:
parent
1a4f1575dd
commit
e08027fe69
1 changed files with 3 additions and 1 deletions
|
@ -229,7 +229,9 @@ impl Module<gtk::Box> for WorkspacesModule {
|
||||||
trace!("Setting up UI event handler");
|
trace!("Setting up UI event handler");
|
||||||
|
|
||||||
while let Some(name) = rx.recv().await {
|
while let Some(name) = rx.recv().await {
|
||||||
client.focus(name)?;
|
if let Err(e) = client.focus(name.clone()) {
|
||||||
|
warn!("Couldn't focus workspace '{name}': {e:#}");
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok::<(), Report>(())
|
Ok::<(), Report>(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue