fix: open_file listener passing window not as a ref

FileImplementedEditor::action_open_file() requires &self as an argument.
merge-requests/8/head
Nefo Fortressia 2021-10-26 16:52:43 +07:00
parent 6c6afa740f
commit fc27583714
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}));
}
}