refactor(applet): move applet module to crate root

This commit is contained in:
Michael Aaron Murphy 2023-09-18 07:45:11 +02:00
parent 69cd9a3bfa
commit 8f7b400143
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
6 changed files with 20 additions and 17 deletions

View file

@ -47,9 +47,11 @@ pub struct Core {
pub(super) system_theme: Theme,
pub(super) title: String,
pub window: Window,
#[cfg(feature = "applet")]
pub applet_helper: super::applet::CosmicAppletHelper,
pub applet: crate::applet::Context,
}
impl Default for Core {
@ -78,7 +80,7 @@ impl Default for Core {
width: 0,
},
#[cfg(feature = "applet")]
applet_helper: super::applet::CosmicAppletHelper::default(),
applet: crate::applet::Context::default(),
}
}
}