diff --git a/crates/komorebi-bar-core/src/widgets/widget.rs b/crates/komorebi-bar-core/src/widgets/widget.rs index 5e2ef7d9..b8638582 100644 --- a/crates/komorebi-bar-core/src/widgets/widget.rs +++ b/crates/komorebi-bar-core/src/widgets/widget.rs @@ -72,12 +72,10 @@ impl WidgetConfig { /// accepted and skipped (see [`WidgetConfig::unsupported`]). #[must_use] pub const fn supported(&self) -> bool { - match self { - WidgetConfig::Keyboard(_) | WidgetConfig::Media(_) | WidgetConfig::Systray(_) => { - cfg!(target_os = "windows") - } - _ => true, - } + !matches!( + self, + WidgetConfig::Keyboard(_) | WidgetConfig::Media(_) | WidgetConfig::Systray(_) + ) || cfg!(target_os = "windows") } /// The name of this widget when the platform cannot run it.