macos-click-through
keith 5 years ago
parent 8c89ffb92b
commit 2c196f84f1

@ -75,7 +75,7 @@ impl UiCommand {
.expect("Focus Gained Failed"), .expect("Focus Gained Failed"),
UiCommand::Quit => { UiCommand::Quit => {
nvim.command("qa!").await.ok(); // Ignoring result as it won't succeed since the app closed. nvim.command("qa!").await.ok(); // Ignoring result as it won't succeed since the app closed.
}, }
UiCommand::FileDrop(path) => { UiCommand::FileDrop(path) => {
nvim.command(format!("e {}", path).as_str()).await.ok(); nvim.command(format!("e {}", path).as_str()).await.ok();
} }

@ -437,7 +437,7 @@ pub fn ui_loop() {
for event in event_pump.poll_iter() { for event in event_pump.poll_iter() {
match event { match event {
Event::Quit { .. } => window.handle_quit(), Event::Quit { .. } => window.handle_quit(),
Event::DropFile { filename, ..} => { Event::DropFile { filename, .. } => {
BRIDGE.queue_command(UiCommand::FileDrop(filename)); BRIDGE.queue_command(UiCommand::FileDrop(filename));
} }
Event::KeyDown { Event::KeyDown {

Loading…
Cancel
Save