1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 10:41:03 +02:00

style: run fmt

This commit is contained in:
Jake Stanger 2022-10-15 00:09:38 +01:00
parent 2cd59ef5ff
commit 006c242f49
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -170,7 +170,9 @@ impl Module<gtk::Box> for WorkspacesModule {
} }
WorkspaceUpdate::Update(event) if event.change == WorkspaceChange::Init => { WorkspaceUpdate::Update(event) if event.change == WorkspaceChange::Init => {
if let Some(workspace) = event.current { if let Some(workspace) = event.current {
if self.all_monitors || workspace.output.unwrap_or_default() == output_name { if self.all_monitors
|| workspace.output.unwrap_or_default() == output_name
{
let name = workspace.name.unwrap_or_default(); let name = workspace.name.unwrap_or_default();
let item = create_button( let item = create_button(
&name, &name,