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

made drag and drop support selectable on Windows for the eframe glium integration (#324)

* made drag and drop support selectable on windows

to avoid issues with crates that use multi-threaded COM apis

* fixed formatting and clippy issues
This commit is contained in:
Joel Nises
2021-04-19 22:49:28 +02:00
committed by GitHub
parent 23d292a974
commit 72d0d71d66
2 changed files with 27 additions and 0 deletions

View File

@@ -155,6 +155,12 @@ pub trait App {
fn transparent(&self) -> bool {
false
}
/// On Windows: enable drag and drop support.
/// Set to false to avoid issues with crates such as cpal which uses that use multi-threaded COM API <https://github.com/rust-windowing/winit/pull/1524>
fn drag_and_drop_support(&self) -> bool {
true
}
}
/// Image data for the icon.