fix: proper feature gate

This commit is contained in:
Ashley Wulber 2025-06-18 14:12:00 -04:00 committed by Ashley Wulber
parent 720caa5dba
commit 36a5ce2002
3 changed files with 18 additions and 17 deletions

View file

@ -63,7 +63,7 @@ pub fn desktop() -> Result<(), Box<dyn std::error::Error>> {
settings = settings.size_limits(Limits::NONE.min_width(360.0).min_height(180.0));
settings = settings.exit_on_close(false);
settings = settings.transparent(true);
#[cfg(feature = "wayland")]
#[cfg(all(feature = "wayland", feature = "desktop-applet"))]
{
settings = settings.no_main_window(true);
}