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:
parent
e737177ab0
commit
ddf91b18cc
10 changed files with 76 additions and 15 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue