fix(core): fix layout watcher channel crashing on macOS and Windows

This commit is contained in:
Federico Terzi 2021-08-12 19:50:08 +02:00
parent 88d589e851
commit 35d931e49c

View File

@ -94,8 +94,8 @@ fn daemon_main(args: CliModuleArgs) -> i32 {
watcher::initialize_and_spawn(&paths.config, watcher_notify) watcher::initialize_and_spawn(&paths.config, watcher_notify)
.expect("unable to initialize config watcher thread"); .expect("unable to initialize config watcher thread");
let (keyboard_layout_watcher_notify, keyboard_layout_watcher_signal) = unbounded::<()>(); let (_keyboard_layout_watcher_notify, keyboard_layout_watcher_signal) = unbounded::<()>();
keyboard_layout_watcher::initialize_and_spawn(keyboard_layout_watcher_notify) keyboard_layout_watcher::initialize_and_spawn(_keyboard_layout_watcher_notify.clone())
.expect("unable to initialize keyboard layout watcher thread"); .expect("unable to initialize keyboard layout watcher thread");
let config_store = let config_store =