1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

Clean up various small TODOs

This commit is contained in:
Emil Ernerfeldt
2020-10-01 22:40:49 +02:00
parent 6fcfb52aa0
commit 5cba44eaa8
9 changed files with 56 additions and 26 deletions

View File

@@ -63,8 +63,10 @@ pub fn input_to_egui(
}
KeyboardInput { input, .. } => {
if let Some(virtual_keycode) = input.virtual_keycode {
// TODO: If mac
if input.modifiers.logo() && virtual_keycode == VirtualKeyCode::Q {
if cfg!(target_os = "macos")
&& input.modifiers.logo()
&& virtual_keycode == VirtualKeyCode::Q
{
*control_flow = ControlFlow::Exit;
}
@@ -174,7 +176,7 @@ pub fn handle_output(
) {
if let Some(url) = output.open_url {
if let Err(err) = webbrowser::open(&url) {
eprintln!("Failed to open url: {}", err); // TODO show error in imgui
eprintln!("Failed to open url: {}", err);
}
}