From fc2758371428ecc92e8fc7a64085dcca102caaec Mon Sep 17 00:00:00 2001 From: Nefomemes Date: Tue, 26 Oct 2021 16:52:43 +0700 Subject: [PATCH] fix: open_file listener passing window not as a ref FileImplementedEditor::action_open_file() requires &self as an argument. --- src/components/window/menubar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/window/menubar.rs b/src/components/window/menubar.rs index eb0468c..ae99682 100644 --- a/src/components/window/menubar.rs +++ b/src/components/window/menubar.rs @@ -100,7 +100,7 @@ impl MenubarImplementedEditor for EchidnaWindow { &self.add_action(&action_open_file); action_open_file.connect_activate(clone!(@weak self as window => move |action, variant| { - Self::action_open_file(window); + window.action_open_file(); })); } }