1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 14:21: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:
Leshuguita 2024-09-24 17:42:13 -03:00 committed by GitHub
parent 1a4f1575dd
commit e08027fe69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -229,7 +229,9 @@ impl Module<gtk::Box> for WorkspacesModule {
trace!("Setting up UI event handler");
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>(())