|
|
@ -35,7 +35,8 @@ impl Handler for NeovimHandler {
|
|
|
|
SETTINGS.handle_changed_notification(arguments);
|
|
|
|
SETTINGS.handle_changed_notification(arguments);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"neovide.register_right_click" => {
|
|
|
|
"neovide.register_right_click" => {
|
|
|
|
if cfg!(windows) {
|
|
|
|
#[cfg(windows)]
|
|
|
|
|
|
|
|
{
|
|
|
|
if unregister_rightclick() {
|
|
|
|
if unregister_rightclick() {
|
|
|
|
error!("Setup of Windows Registry failed during unregister. Try running as Admin?");
|
|
|
|
error!("Setup of Windows Registry failed during unregister. Try running as Admin?");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -48,10 +49,13 @@ impl Handler for NeovimHandler {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"neovide.unregister_right_click" => {
|
|
|
|
"neovide.unregister_right_click" => {
|
|
|
|
if cfg!(windows) && !unregister_rightclick() {
|
|
|
|
#[cfg(windows)]
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if !unregister_rightclick() {
|
|
|
|
error!("Removal of Windows Registry failed, probably no Admin");
|
|
|
|
error!("Removal of Windows Registry failed, probably no Admin");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
_ => {}
|
|
|
|
_ => {}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.await
|
|
|
|
.await
|
|
|
|