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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user