mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Also drop Sync requirement for editor handles
This commit is contained in:
@@ -299,7 +299,7 @@ impl<E: IcedEditor> Editor for IcedEditorWrapper<E> {
|
||||
&self,
|
||||
parent: ParentWindowHandle,
|
||||
context: Arc<dyn GuiContext>,
|
||||
) -> Box<dyn std::any::Any + Send + Sync> {
|
||||
) -> Box<dyn std::any::Any + Send> {
|
||||
let (unscaled_width, unscaled_height) = self.iced_state.size();
|
||||
let scaling_factor = self.scaling_factor.load();
|
||||
|
||||
@@ -389,7 +389,6 @@ struct IcedEditorHandle<Message: 'static + Send> {
|
||||
/// The window handle enum stored within 'WindowHandle' contains raw pointers. Is there a way around
|
||||
/// having this requirement?
|
||||
unsafe impl<Message: Send> Send for IcedEditorHandle<Message> {}
|
||||
unsafe impl<Message: Send> Sync for IcedEditorHandle<Message> {}
|
||||
|
||||
impl<Message: Send> Drop for IcedEditorHandle<Message> {
|
||||
fn drop(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user