1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-06 04:51:02 +02:00

build: add focused and launcher feature flags

This commit is contained in:
thmasq 2024-01-13 22:08:31 -03:00
parent e737177ab0
commit ddf91b18cc
10 changed files with 76 additions and 15 deletions

View file

@ -28,8 +28,10 @@ pub mod clipboard;
#[cfg(feature = "clock")]
pub mod clock;
pub mod custom;
#[cfg(feature = "focused")]
pub mod focused;
pub mod label;
#[cfg(feature = "launcher")]
pub mod launcher;
#[cfg(feature = "music")]
pub mod music;
@ -68,6 +70,7 @@ pub enum ModuleUpdateEvent<T: Clone> {
/// Force sets the popup open.
/// Takes the button ID.
OpenPopup(usize),
#[cfg(feature = "launcher")]
OpenPopupAt(WidgetGeometry),
/// Force sets the popup closed.
ClosePopup,
@ -317,6 +320,7 @@ fn setup_receiver<TSend>(
has_popup_opened = true;
}
}
#[cfg(feature = "launcher")]
ModuleUpdateEvent::OpenPopupAt(geometry) => {
debug!("Opening popup for {} [#{}]", name, id);