We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
raw.hovered_files
Looks like the Windows 11 system blocks using raw.hovered_files if an app runs as administrator.
To Reproduce
use eframe::egui; use egui::{Align2, Color32, Id, LayerId, Order, TextStyle}; fn main() -> eframe::Result { eframe::run_native( "MyApp", Default::default(), Box::new(|_cc| Ok(Box::new(MyApp::default()))), ) } #[derive(Default)] struct MyApp {} impl eframe::App for MyApp { fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { if !ctx.input(|i| i.raw.hovered_files.is_empty()) { let text = ctx.input(|i| format!("Dropping files: {}", i.raw.hovered_files.len())); let painter = ctx.layer_painter(LayerId::new(Order::Foreground, Id::new("file_drop_target"))); let screen_rect = ctx.screen_rect(); painter.rect_filled(screen_rect, 0.0, Color32::from_black_alpha(192)); painter.text( screen_rect.center(), Align2::CENTER_CENTER, text, TextStyle::Heading.resolve(&ctx.style()), Color32::WHITE, ); } } }
Expected behavior I can't find an explanation for this behavior in the docs, so it seems more like not intended.
Environment:
egui
eframe
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Looks like the Windows 11 system blocks using
raw.hovered_files
if an app runs as administrator.To Reproduce
Expected behavior
I can't find an explanation for this behavior in the docs, so it seems more like not intended.
Environment:
egui
version: 0.31.0eframe
version: 0.31.0The text was updated successfully, but these errors were encountered: