diff --git a/fractal-gtk/src/app/mod.rs b/fractal-gtk/src/app/mod.rs index d77175ee..34ffaff4 100644 --- a/fractal-gtk/src/app/mod.rs +++ b/fractal-gtk/src/app/mod.rs @@ -26,16 +26,16 @@ static mut OP: Option>> = None; #[macro_export] macro_rules! APPOP { ($fn: ident, ($($x:ident),*) ) => {{ - let ctx = glib::MainContext::default(); - ctx.invoke(move || { - $( let $x = $x.clone(); )* - if let Some(op) = App::get_op() { - op.lock().unwrap().$fn($($x),*); - } - }); + let ctx = glib::MainContext::default(); + ctx.invoke(move || { + $( let $x = $x.clone(); )* + if let Some(op) = App::get_op() { + op.lock().unwrap().$fn($($x),*); + } + }); }}; ($fn: ident) => {{ - APPOP!($fn, ( ) ); + APPOP!($fn, ( ) ); }} }