fixed bug when disabling default features

This commit is contained in:
Nickiel12 2022-07-16 19:15:02 -07:00
parent eb37513a4b
commit e5e50e5422

View file

@ -17,7 +17,6 @@ pub const OPTIONS_PATH: &str = "./options.json";
pub const OPTIONS_PATH: &str = "./options.json"; pub const OPTIONS_PATH: &str = "./options.json";
*/ */
#[cfg(feature = "default")]
pub fn create_keyboard_hooks(channel_tx: crossbeam_channel::Sender<String>, close_flag: workctl::sync_flag::SyncFlagRx) { pub fn create_keyboard_hooks(channel_tx: crossbeam_channel::Sender<String>, close_flag: workctl::sync_flag::SyncFlagRx) {
let tx_1 = channel_tx.clone(); let tx_1 = channel_tx.clone();
@ -30,6 +29,7 @@ pub fn create_keyboard_hooks(channel_tx: crossbeam_channel::Sender<String>, clos
tx_2.send(StateUpdate::ChangeSlide(SlideChange::NextHotkey).to_json().to_string()).unwrap(); tx_2.send(StateUpdate::ChangeSlide(SlideChange::NextHotkey).to_json().to_string()).unwrap();
}); });
#[cfg(feature = "default")]
inputbot::handle_input_events(close_flag); inputbot::handle_input_events(close_flag);
} }